[antlr-interest] Syntactic Predicate does not work but Backtracking does
Johannes Luber
jaluber at gmx.de
Mon Mar 3 07:03:35 PST 2008
Alexander Gängel schrieb:
> Sorry then I don't understand how Syntactic Predicates are working.
>
> What I want is the possibility to have an expression or expression comma
> followed by another expression, but the number of comma Expression is
> not defined.
>
> Alexander
How about:
expression_list
: expression (COMMA expression)*
;
Johannes
More information about the antlr-interest
mailing list