[antlr-interest] Preventing antlr from calling required rule
mazlanmat
mazlanmat at yahoo.com
Sat Jul 26 04:36:42 PDT 2003
Hello there
Is is possible to prevent antlr from calling required rule(let say
RuleA) after the same rule (RuleA) has been matched in the subrule
(RuleB)
Example:
MainRule
: RuleB
RuleA
RuleA
: //
;
RuleB
: (another rule
| RuleA
)
;
In the mainRule above, RuleA must be matched after RuleB, but RuleB
also might contains RuleA.The problem here is that after RuleA has
been matched in RuleB, MainRule will always try to match RuleA (which
is already been matched)
Thanks
Mazlan
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list