[antlr-interest] Hoisting help required.
Renji Panicker
renji at aliyance.com
Tue Apr 23 06:54:16 PDT 2002
Never mind this, sorry. I figured it out. I should have used ? instead of *
...
thanks anyway,
-/renji
-----Original Message-----
From: Renji Panicker [mailto:renji at aliyance.com]
Sent: Tuesday, April 23, 2002 7:08 PM
To: antlr-interest at yahoogroups.com
Subject: [antlr-interest] Hoisting help required.
Hi everyone,
I've been trying to understand predicate hoisting without much success.
Please have a look at this very simple snippet:
///////////////////////////////////////////////
assignment_expression:
logicalOr_expression
(
TOK_ASSIGNMENT
assignment_expression
)*
;
///////////////////////////////////////////////
I get the following error:
///////////////////////////////////////////////
Performing Custom Build Step on ..\..\..\src\iParser\src\iScriptGrammer.g
ANTLR Parser Generator Version 2.7.1 1989-2000 jGuru.com
..\..\..\src\iParser\src\iScriptGrammer.g:113: warning: nondeterminism upon
..\..\..\src\iParser\src\iScriptGrammer.g:113: k==1:TOK_ASSIGNMENT
..\..\..\src\iParser\src\iScriptGrammer.g:113: between alt 1 and exit
branch of block
///////////////////////////////////////////////
I know the solution is something to do with hoisting, but can't figure it
out. Could someone please provide some assistance on this?
Thanks,
-/renji
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list