[antlr-interest] left recursion removal

Sébastien Kirche sebastien.kirche at gmail.com
Fri Jul 8 00:47:20 PDT 2011


Le 7 juillet 2011 17:51, John B. Brodie <jbb at acm.org> a écrit :
>
> change the singleStatement rule to this:
>
> singleStatement
>        :       IDENT ( OPEQ expression | '(' expressionList? ')' )
>        |       'return' expression
>        ;
>
> and delete the now unnecessary assignment rule.

And it works.
It's like watching a juggler on tv : it looks almost easy ;o)

Thanks.
-- 
Sébastien Kirche


More information about the antlr-interest mailing list