sxzz / ast-explorer

A web tool to explore the ASTs generated by front-end parsers.
https://ast.sxzz.moe
GNU Affero General Public License v3.0
129 stars 13 forks source link

Add oxc parser #26

Closed 0xdevalias closed 7 months ago

0xdevalias commented 9 months ago

Clear and concise description of the problem

As a developer using ast-explorer, I want to be able to see the AST's parsed by oxc

Suggested solution

Mostly opening this as a tracking issue since I noticed your comment on the oxc repo RE: wasm:

I'd like to add Oxc parser to my AST Explorer

Originally posted by @sxzz in https://github.com/oxc-project/oxc/issues/301#issuecomment-1754520023


I noticed that the playground's package.json loads it as such:

Yet there doesn't seem to be a npm/wasm-web in the main repo?

Edit: Actually, I see now, it's the package.json has scripts to build it:

Originally posted by @0xdevalias in https://github.com/oxc-project/oxc/issues/301#issuecomment-1835439409

Alternative

No response

Additional context

No response

Validations

sxzz commented 7 months ago

Oxc parser is supported via 9c4e4ad4c526f62e112be3b4471644b60de309a9. Thanks to https://github.com/oxc-project/oxc/issues/301.