jsxer
jsxer copied to clipboard
FeatureRequest: Dump the AST (with a cli flag)
var test = 5;
if (test > 5) {
doSomething();
}
to
StatementList
ExprNode
AssignmentExpr
IfStatement
StatementList
ExprNode
FunctionCallExpr
IdNode
BinaryExpr
IdRefExpr
I think we should also add line numbering to this. That would be extremely helpful.
Generating an EcmaScript like ast (json) with ExtendScript nodes also useful to pass onto codegens like escodegen, astring (modified: with ExtendScript nodes) to generate logically correct code. Codegens do codegeneration the right way.
@psyirius do you have an email I could contact you at?
Sent to your professional email addy.