> I do not know why you get the undefined label error.
> 
> Have you considered not using a sub-rule for the then-else part?
> 
> Something like:
> 
> expression :
>     conditionalOrExpression (QMARK^ expression COMMA! expression) ?
>   ;
> 
> or if you really want ITE as the root (instead of QMARK) perhaps:
> 
> expresssion :
>     ( c=conditionalOrExpression -> $c )
>         ( QMARK t=expression COMMA f=expression-> ^(ITE $c $t $f) )?
>  ;
> 
> 
> Hope this helps...
>    -jbb

It helped a lot.
 
I was quite sure to get a non-LLR grammar that way, but now I see I have 
backtrack=false and still antlr doesn't complains...

Thank you, John.

Giampaolo


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to