shapesecurity / shift-parser-js

ECMAScript parser that produces a Shift format AST
http://shift-ast.org/parser.html
Apache License 2.0
245 stars 28 forks source link

Anyway to parse a SHIFT AST back to JavaScript codes? #443

Closed zhaohan-xi closed 3 years ago

zhaohan-xi commented 3 years ago

Hi Dear Author, seems like this powerful tool can transfer the JS codes into SHIFT AST, but is there any way to transfer it back? And if yes, can this process be done by python?

bakkot commented 3 years ago

is there any way to transfer it back

Yes.

And if yes, can this process be done by python?

No, the Shift tooling currently only runs in Java and JavaScript.