I've been investigating, and came to the conclussion that the best
compiler I can do IS NOT a compiler, BUT an specialiced translator. I
could use customizable templates to transform Pascal code into each
VM's natural language, then take advantage of the command-line
compilers for those VMs. There are open-source compilers that will fit
perfectly on this project. At least MTASC, is a much faster and
optimal compiler than the actual Macromedia/Adobe Flash compiler.
Crappy and cheaty, maybe, but will output the best optimal code
possible, and also will save myself from the HUGE task of creating
real compilers, since I must keep focused on my game engine. If we
remove pointers, goto's (...what else?), there is almost a one-on-one
correspondence between Object Pascal and ECMA's scripts (javascript
and actionscript), Java and .NET. But will require some cheating with
the class frameworks (thinking on FPC's RTL and the LCL), like
converting TBitmap into MovieClip, as an example. As said it's a
language mutilation, but it's something a programmer can live with if
he/she wants to target those virtual platforms, Delphi .NET shows that
as you mentioned.
-Marco
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives