[antlr-interest] starting with language translation

Richard Clark rdclark at gmail.com
Thu Mar 13 12:27:11 PDT 2008


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


More information about the antlr-interest mailing list