[antlr-interest] Fwd: AST and Parse Tree

Alexandre Porcelli porcelli at uol.com.br
Wed Oct 24 04:09:25 PDT 2007


When you declare the option AST, you have that.

options{
        output=AST;
}

Ps: using AST rewriting you can remove same unnecessary element from
AST (ex: commas, parenthesis, etc...) and enclose logical statements
in a real tree.

Regards,
Alexandre Porcelli

On 10/24/07, Simone Tripodi <simone.tripodi at gmail.com> wrote:
> Hallo everybody,
> does it is possible to have an AST that reflects the parse tree,
> without rewriting any AST rule?
> Thanks in advance,
> Simo
>


More information about the antlr-interest mailing list