A web tool to explore the ASTs generated by parsers.
### 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': - https://github.com/github/semantic - > Parsing, analyzing, and comparing source code across many languages - https://github.com/tree-sitter/tree-sitter - > An incremental parsing system for programming tools - https://github.com/tree-sitter/tree-sitter/blob/master/lib/binding_web/ - > WebAssembly bindings to the Tree-sitter parsing library. - https://github.com/tree-sitter/tree-sitter/tree/master/cli - > The Tree-sitter CLI allows you to develop, test, and use Tree-sitter grammars from the command line. - https://github.com/tree-sitter/node-tree-sitter - > Node.js bindings for tree-sitter --- > Tree sitter's WASM distribution seems to be able to create an AST in browser: > > [npmjs.com/package/web-tree-sitter](https://www.npmjs.com/package/web-tree-sitter) > > _Originally posted by @privatenumber in https://github.com/fkling/astexplorer/issues/622#issue-1087317072_ See also: - https://github.com/tree-sitter/tree-sitter/tree/master/lib/binding_web ### Alternative _No response_ ### Additional context - https://github.com/fkling/astexplorer/issues/688 - https://github.com/fkling/astexplorer/issues/622 ### Validations - [X] Follow our [Code of Conduct](https://github.com/sxzz/.github/blob/main/CODE_OF_CONDUCT.md) - [X] Read the [Contributing Guide](https://github.com/sxzz/contribute). - [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be still under discussion. The issue was opened by 0xdevalias and has received 7 comments.