[antlr-interest] Java In / Java Out: Going once ...

eric nelson wirecracker at gmail.com
Thu Nov 10 13:57:43 PST 2005


Actually, the point is that I am trying to learn StringTemplate and ANTLR. I
thought this would be a great exercise by translating from Java to Java
using ANTLR to parse the input and StringTemplate to format the output. I
have made some recent progress thanks to Terence and Laurent :) If anyone's
interested (and if I finish this sometime before the new year ;), I'll post
my final code :)
 But, yes Andy, thanks for the JavaEmitter suggestion :)
  - e


 On 11/10/05, Andy Tripp <atripp at comcast.net> wrote:
>
> Eric,
> I feel your pain :)
>
> If you're lazy like me and don't feel like even learning StringTemplate
> or even tree walkers,
> you can just use my JavaEmitter code. You use the standard java.g to
> read into an AST,
> and then this code walks that tree without using the ANTLR treewalker
> thing.
> This code does a good job of formatting the Java output, too.
>
> You could also use Terrance's JavaEmitter that uses an ANTLR treewalker.
> Both are available under the "File Sharing" section of antlr.org<http://antlr.org>
>
> Andy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20051110/ff961c8a/attachment.html


More information about the antlr-interest mailing list