Matt Fowles wrote:
> The company that I work for would really like to be able to target a
> standard AST and then let the existing javac do its work...
The JavaFX Script compiler targets an extension of the javac AST.
The extended AST then gets translated to a pure javac AST (except for
an extension for "BlockExpression", which I hope we can get
merged into javac proper).
The javac AST is very focused on Java. For example it strictly
separates expressions and statements, which is not ideal for an
expression language, such as JavaFX Script (or Ruby).
Maybe after the JavaFX Script compiler stabilizes, and after
both have been moved to Mercurial, we can meet with the javac
compiler groups and discuss ideas for changes. It's hard to
generalize from one language, but with two languages we can
make a start. This is complicated by the legal requirement
that javac compiles Java and nothing but Java, so any modified
or extended features have to remain inaccessible when the
compiler is invoked as javac.
--
--Per Bothner
[EMAIL PROTECTED] http://per.bothner.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "JVM
Languages" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jvm-languages?hl=en
-~----------~----~----~----~------~----~------~--~---