mozilla-spidermonkey / jsparagus

Experimental JS parser-generator project.
Other
447 stars 20 forks source link

[Feature] Consider/ Requesting Access to read-only AST of Javascript Parser #675

Open ganeshkbhat opened 11 months ago

ganeshkbhat commented 11 months ago

Can you make the AST available as read-only to developers in browsers [rethink security concerns] and js server environments if not on browers? Seems like the mozilla docs Parser_API documentation is somehow removed and I am still wondering how to access the file's parsed, even if read-only, AST

  1. Access AST: https://github.com/nodejs/node/issues/45158
  2. Use Cases of AST like JS Parsers: https://github.com/nodejs/node/issues/45207
  3. One of many JS Parsers [Use Cases]: https://github.com/dop251/goja/issues/498
  4. JS Parsers in the market [Use Cases]: https://github.com/fkling/astexplorer
  5. https://stackoverflow.com/questions/16127985/what-is-javascript-ast-how-to-play-with-it