[antlr-interest] skipping tokens...
pady
prabha_pady at comcast.net
Mon Dec 29 21:55:53 PST 2008
I am a beginner antlr user. In my tree grammar, I have a rule like...
ifStatement
: ^('if' b=boolExpression statementBlock ^(ELSE statement) )
;
if the boolExpression returns false, I would like to skip execution of
"statementBlock" but make the current token move to the "else" part for
matching. Can this be done using antlr syntax ? Or should i have to do this
through some java code ( ie passing the status to statementBlock and all its
children etc ).
Thanks
-- pady
More information about the antlr-interest
mailing list