[antlr-interest] Hoisting help required.

Renji Panicker renji at aliyance.com
Tue Apr 23 06:37:44 PDT 2002


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/ 



More information about the antlr-interest mailing list