[antlr-interest] rewriting done in antlrworks

Dieter Frej dieter_frej at gmx.net
Thu Oct 26 09:39:04 PDT 2006


ok, then I meant the parse tree ;-)

How can I get hold of the record resp the parse tree? Can I use
antlrworks functionality for that or do I habe to implement that myself?

- Didi



Terence Parr wrote:
> 
> 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