[antlr-interest] Change type of current AST

Dimitrios Kolovos dskolovos at gmail.com
Fri Jun 6 06:27:13 PDT 2008


Hi,

In ANTLR2 I was able to change the type of the current AST like this:

additiveExpression
    :    multiplicativeExpression ((PLUS^|MINUS^) 
multiplicativeExpression {#additiveExpression.setType(OPERATOR);})*
    ;

but I haven't been able to find how to do the same in v3. Any hints?

Cheers,
Dimitrios


More information about the antlr-interest mailing list