[antlr-interest] how to modify an AST after it has been constructed

Johannes Luber jaluber at gmx.de
Wed Aug 6 04:48:28 PDT 2008


Gerard van de Glind schrieb:
> Thanks Raphael and Johannes,
> 
> I am currently using version 3.0 of ANTLR.
> If I am correct 3.1 is not released yet?! (3.1b2 is the most recent beta)
> 
> So, with my current version it is impossible to rewrite trees after construction?
> 
> Regards, Gerard

Yep. 3.1 should be released soon, though I have to fix one particular 
bug yet and sync the C# target with Java, too.

Johannes
> 
> 
> Raphael Reitzig schrieb:
>> Hi!
>>
>> I suppose you can write a tree gramar, walk and rewrite it.
>>
>> Regards
>>
>> Raphael
> 
> While this is correct, you need ANTLR 3.1 (or at least a beta) to be
> able to rewrite trees.
> 
> Johannes
>> "Gerard van de Glind" <g.vandeglind at beinformed.nl> wrote (Wed Aug  6
>> 12:50:00 2008):
>>
>>> Hi all,
>>>
>>> Is it possible to modify an AST after it has been constructed?
>>> And what is the best way to do it?
>>>
>>> Thanks, Gerard
>>>
>>>
>>
>>
>> ----------------------------------------------------------------
>> This message was sent using IMP, the Internet Messaging Program.
>>
> 



More information about the antlr-interest mailing list