Christian wrote
> 
> Hi,
> 
> what is the error/exception message?
> 
> Regards,
> Christian
> 
> 

MissingTokenException at the second '=', after parsing a=b.c as an
expression. The tail recursion on expr is causing it it seems, but that's a
real issue for me... here is a slightly modified version with the recursion
made explicit that has the same problem:

program
        : statement* EOF
        ;
       
statement
        : ID '=' expr
        | sep
        ;

expr : ID ( '.' expr )*;

sep : ';' | '.';

--
View this message in context: 
http://antlr.1301665.n2.nabble.com/Confused-about-backtracking-tp7033712p7038881.html
Sent from the ANTLR mailing list archive at Nabble.com.

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 il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to