[antlr-interest] Extracting the tree grammar from the parser grammar

Damien Cassou damien.cassou at gmail.com
Fri Jun 5 08:19:11 PDT 2009


Hi,

I have a Parser grammar which generates an AST. Now, I would like to
use StringTemplate to generate code from the AST. The book says to
copy/past parts of the .g file into a new .g file.

Is there any tool to extract the tree grammar from the parser grammar?

Thank you

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry


More information about the antlr-interest mailing list