[antlr-interest] starting with language translation

Stuart Watt swatt at infobal.com
Thu Mar 13 12:47:51 PDT 2008


It may also be worth looking at the open source Google Web Toolkit,
which translates some Java to JavaScript -- which is conceptually the
same as ActionScript apart from the (browser-related parts of the)
object model.

All the best
Stuart


On Thu, 2008-03-13 at 12:27 -0700, Richard Clark wrote:
> hi benzo,
> 
> To make some practical suggestions:
> 1. Do a couple of smaller "warm up" projects before tackling Java to
> Actionscript. Define a subset of Java and define your own parser and
> tree generator. Look at generated trees and write a little code to
> modify them. Write a little StringTemplate test case, and so on...
> 2. Java and Actionscript have different semantics in many places (e.g.
> Java's class-based inheritance vs. Actionscript's prototype-based
> inheritance.) Think about how you're going to bridge those
> differences. Many people wind up writing a runtime library for the
> target language to simplify the translation process.
> 3. Apply unit tests throughout your development. There are just so
> many ways a project of this size can introduce subtle bugs that you
> want automated tests to keep an eye on things.
> 
> Oh, and welcome to the community. :)
> 
> ...Richard
> 
> --
> This message was scanned by ESVA and is believed to be clean.
> Click here to report this message as spam. 
> http://antispam.infobal.com/cgi-bin/learn-msg.cgi?id=E003C27FE7.D8AFB
> 



More information about the antlr-interest mailing list