[antlr-interest] ast for pre/postfix expressions
Felix Dorner
felix_do at web.de
Fri Mar 28 02:52:58 PDT 2008
David Holroyd wrote:
> postfixExpression
> : (primaryExpression -> primaryExpression)
> ( ... )*
> ( in=INC -> ^(POST_INC[$in] $postfixExpression)
> | de=DEC -> ^(POST_DEC[$de] $postfixExpression)
> )?
>
>
Thanks. This is actually similar to what Gavin suggested, just that he
missed a ')' after the first rewrite, so I got syntax errors..
Felix
More information about the antlr-interest
mailing list