Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tree-sitter / web-tree-sitter parser #25

Open
3 tasks done
0xdevalias opened this issue Dec 1, 2023 · 3 comments
Open
3 tasks done

Add tree-sitter / web-tree-sitter parser #25

0xdevalias opened this issue Dec 1, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@0xdevalias
Copy link

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 tree-sitter / web-tree-sitter

Suggested solution

It would be really cool if AST Explorer was able to support 'Semantic' and/or 'Tree-Sitter':


Tree sitter's WASM distribution seems to be able to create an AST in browser:

npmjs.com/package/web-tree-sitter

Originally posted by @privatenumber in fkling/astexplorer#622 (comment)

See also:

Alternative

No response

Additional context

Validations

@0xdevalias 0xdevalias added the enhancement New feature or request label Dec 1, 2023
@0xdevalias 0xdevalias changed the title Add tree-sitter / web-tree-sitter Add tree-sitter / web-tree-sitter parser Dec 1, 2023
@sxzz
Copy link
Owner

sxzz commented Dec 1, 2023

I tried web-tree-sitter, but it seems like it cannot be loaded via CDN. There's a path error, which could be caused by tree-sitter itself, and it's even not an ESM module...

@sxzz
Copy link
Owner

sxzz commented Dec 1, 2023

About semantic, it cannot run on browsers, I guess.

@0xdevalias
Copy link
Author

True true; that sucks :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants