On 6/26/14 6:21 AM, "Mariana Gheorghe" <mariana.gheor...@crispico.com> wrote:
>Hello, > >We are looking for a way to obtain and rewrite the AST (abstract syntax >tree) for an AS file. Currently, we are using the compiler library that >comes with the SDK, and we've obtained the AST rooted at a ProgramNode. >We are now unsure on how to proceed to: a) make modifications to the >tree (e.g. add a variable, add a parameter to a function), and b) >generate the code from a (modified) tree. Any hints on how to do this >would be appreciated! I find the MXMLC code to be very difficult. > >Also, we were wondering about the status of Falcon, and if we should in >fact use Falcon to obtain/rewrite the AST, instead of the compiler from >the SDK. Falcon has released a 0.0.1 alpha, we'll ship a 0.0.2 soon. I find the code base much easier to work with. -Alex