[antlr-interest] speaking of => etc...
Terence Parr
parrt at cs.usfca.edu
Thu Dec 8 11:15:47 PST 2005
So, we have a syntax / notation problem for predicates now. I am
proposing the following new notation:
[...] optional subrule
(...)? syntactic predicate
a : (alt)? | ... ; syntactic predicate wrapping whole production
{...}? _hoisting_ disambiguating semantic predicate
{...}=> gated semantic predicate
rule rule reference
<rule(args)> rule reference with args
ID token reference
<ID(args)> token reference with options
The blog shows my reasoning:
http://www.antlr.org/blog/antlr3/lookahead.tml
Ter
More information about the antlr-interest
mailing list