incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Zwaga <rol...@stackandheap.com>
Subject Re: Time for an Apache Flex compiler.
Date Thu, 16 Feb 2012 13:00:26 GMT
On 16 February 2012 13:55, Martin Heidegger <mh@leichtgewicht.at> wrote:

> On 16/02/2012 21:49, Jarosław Szczepankiewicz wrote:
>
>> this is my personal opinion, but what's the purpose of another flex
>> compiler from open source, especially written in as3?
>>
>
> The purpose of a compiler written in AS3 is that we can compile code on
> the fly instead of whenever necessary. This ability is important if we ever
> want tools like Firebug for JavaScript or the Python console, both of which
> are now dearly missing. Also Dart - a competing language - offers this
> feature directly on the homepage which does put so awe on the faces.
>

The libraries needed to create an AS3 based compiler are already available,
there is as3commons-asblocks that is able to parse AS3 source code to an
AST. And there is as3commons-bytecode which is able to generate classes at
runtime. The big challenge is the conversion from AST->opcodes when it
comes to the method bodies.
But in theory its entirely possible...
Yet, this is a different matter from Falcon or a possible alternative
compiler produced by the community.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message