[antlr-interest] rewriting done in antlrworks
Terence Parr
parrt at cs.usfca.edu
Wed Oct 25 14:08:16 PDT 2006
On Oct 25, 2006, at 1:30 PM, Dieter Frej wrote:
> Hi,
>
> in the current java.g for antlr3 there are no ^ to specify the
> order of
> nodes in the AST. When I use the interpreter in antlrworks a
> correct AST
> will be drawn showing which rules was executed. I would like to
> know how
> this is realised. Does antlrworks modify the grammar on-the-fly or is
> the execution somehow monitored? And: can I use this functionality
> "from
> outside"? What I would like to do is to generate such an AST and
> work on
> it... (ok, first display it and then go through it)... Or any other
> ideas if this can done in a different way?
Hi :) That's a parse tree versus AST. The parse tree can be
automatically generated as it's a record of the parse. :)
Ter
More information about the antlr-interest
mailing list