[antlr-interest] Re: ANTLR translation - e.g. Java->tree->Java

dharbari2 vijay at mindspring.com
Thu Jul 3 13:48:28 PDT 2003


Would love to get a copy too. 
vijay at mindspring.com
thanks

Vijay

--- In antlr-interest at yahoogroups.com, "atripp54321" <atripp at c...> 
wrote:
> I have a straightforward JavaEmitter class that produces 
> decent-looking java code from an ANTLR AST.
> I'll mail it to you (I assume it's poor edicate to post
> 900 lines of code).
> 
> Andy
> 
> --- In antlr-interest at yahoogroups.com, "Tim Tyler" <tt2333 at y...>
> wrote:
> > I'm contemplating an ANTLR translation project.
> > 
> > To do this I need to reconstruct the Java file from its tree.
> > 
> > There seem to be several problems.
> > 
> > One is that unicode information seems to get blatted.
> > 
> > Another is that most of the Java parsers I can see
> > strip out comments and white space.  I'm likely to
> > be wanting to preserve these as much as possible -
> > and maybe have them in the parse tree.
> > 
> > About the only existing Java ANTLR translation project
> > I'm aware of is Jalopy: http://jalopy.sourceforge.net/
> > 
> > Jalopy suggests that something is at least possible - but
> > it is big and complex - and I'd like a bit of a less hairy
> > example.
> > 
> > Are there any other ANTLR translation projects out there?
> > 
> > I'm a bit suprised ANTLR isn't already a little more translation-
> > oriented.
> > 
> > After all, being able to reconstruct the original file is a good 
> > test for having parsed it correctly ;-)


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list