[antlr-interest] [ANTLR] Translating from one language to another
antlr at jazillian.com
Fri Jul 18 08:26:03 PDT 2008
Jazillian is a product that translates C and C++ to Java.
See http://www.jazillian.com for info.
I know a couple of people have done some simple Java-to-other-language
translators. They start with the java.g and then either modify
the treewalker java.tree.g or modify my "hand-coded-treewalker" approach
Translating the core language is fairly straightforward, especially
when you start with Java because it's the "less feature rich" language.
The hard part is translating the library calls.
Amir Latif wrote:
> I've been doing some reading on how to write a translator to take code
> from say, Java -> C++ and Java -> Actionscript etc.
> My reading has led me to the really nifty looking ANTLR. I was assuming
> that code translation between languages was a more commonly tackled
> problem but there doesn't appear to be much literature out there
> covering the topic.
> Is this something that is easily accomplished using ANTLR, as I suspect?
> If so, could someone please point me in the right direction for reading
> material if there is any?
> many thanks,
More information about the antlr-interest