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!

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.

Thank you in advance,
Mariana

Reply via email to