[antlr-interest] Syntactic Predicate does not work but Backtracking does
Alexander Gängel
alexander at gaengel.de
Mon Mar 3 07:44:36 PST 2008
Ok this works, I thought I would have to use Syntactic Predicates there,
maybe I should just go to sleep.
Alexander
Johannes Luber schrieb:
> 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