[antlr-interest] adding enum token types output for java target
Terence Parr
parrt at cs.usfca.edu
Wed May 28 08:48:41 PDT 2008
On May 28, 2008, at 8:30 AM, Andy Tripp wrote:
> I'd suggest creating a tool that's separate from ANTLR itself,
> starting with the ANTLR-generated "ID=34" format file
> to produce enums. This would be a great example of how to get
> started StringTemplate,
> without having to know any ANTLR. It would also avoid the "ANTLR
> generates
> only JDK1.4" issue.
>
> And I'll be interested to see if StringTemplate lets me write it in
> less time than it took
> to write it in Java (5 mins?).
sed can do it in 1 command in 3 seconds ;)
Ter
More information about the antlr-interest
mailing list