0

是否有允许从 C++ API 生成 js AST,然后从该 AST 制作源代码的库?

有点像这样:

Expression * expression1 = new Number(42);
Expression * expression2 = new Number(69);
Expression * result = new Addition(expression1, expression2);
Statement * stmt = new Return(result);
string code = Codegen().build(stmt); // "return ((42)+(69));"
4

0 回答 0