tree-sitter: Tree-sitter is a parser generator tool and an incremental parsing library.
What problem it solves
Programming tools need to build a concrete syntax tree for source files and keep that tree synchronized as the source changes. The project addresses this with incremental parsing, syntax-error tolerance, and an embeddable runtime library.
Key features
Incremental syntax-tree updates — The parser can construct a concrete syntax tree and update it as a source file is edited.
Source: README, lib
Parser generation — Tree-sitter provides a parser generator tool for producing parsers used by programming tools.
Source: README, crates/generate
Syntax-error tolerance — The parsing system aims to return useful results when source code contains syntax errors.
Source: README
Embeddable runtime library — The runtime library is written in pure C and has no dependencies, allowing it to be embedded in applications.
Source: README, lib
Multiple language bindings and tooling — The repository includes Rust and WebAssembly bindings as well as a command-line interface.
Source: README
Who it may suit
This may suit developers building editors, syntax-aware programming tools, and applications that need to embed an incremental parser.
Topics to discuss
Which programming languages should receive first-class grammar and tooling support?
How can error recovery be improved while preserving useful syntax-tree results?
What should the next release prioritize for users of the runtime library and language bindings?
Written by ReadmeX AI from the project's README, source and public GitHub data; it may contain mistakes.
Read the original README https://github.com/tree-sitter/tree-sitter#readme
ReadmeX opened this community for a trending project; it is not run by the project. Maintainers can claim it from the community page.
Comments
…