[antlr-interest] Read grammar, manipulate it, and save changes

Christian chwchw at gmx.de
Fri Dec 16 19:47:19 PST 2011


Hi at all,

I read an antlr-based grammar and produce an AST out of it. After
manipulating the AST, I now want to save it to a file. But how could I
do it? Do I have to walk through the AST and manually add parantheses,
whitespaces and so on? Or does a formatter already exist that I can use?

I use ANTLR (with the ANTLR 1.6 grammar) to parse the antlr-based
grammar and to create the AST.

Regards,
Christian


More information about the antlr-interest mailing list