[antlr-interest] Python target: output=template ready for testing

Benjamin Niemann pink at odahoda.de
Sat Nov 24 18:38:40 PST 2007


Hello fellow Pythonistas!

If you are interested in the output=template option of ANTLR, have a 
look at the repository <http://fisheye2.cenqua.com/browse/antlr> - I 
just checked in the implementation for it. Using template output creates 
a dependency on the antlr2 runtime and stringtemplate3, which you have 
to grab from fisheye as well. Some minimal documentation can be found in 
the wiki <http://www.antlr.org/wiki/display/ANTLR3/Antlr3PythonTarget>.
Using output=template with rewrite=true is a damn cool thing, if you are 
tweaking structure text ;)

BTW: most other V3.1 features should be available in the Python target 
as well.

Have fun,
   Ben



More information about the antlr-interest mailing list