tree-sitter /tree-sitter

An incremental parsing system for programming tools

★ 27,482⑂ 3,039👁 292⑃ 3,092● 1,910▤ 107
RustMITCreated 2013-11-06tree-sitter.github.io
下载:v0.27.2v0.27.2 ↓0.27.22026-11-07
27,482
stars
3,039
forks
292
watchers
3,092
prs
1,910
issues
107
releases

README

tree-sitter


[![discord][discord]](https://discord.gg/w7nTvsVJhm)
[![matrix][matrix]](https://matrix.to//tree-sitter-chat:matrix.org)

Tree-sitter is a parser generator tool and an incremental parsing library. It can build a concrete syntax tree for a source file and efficiently update the syntax tree as the source file is edited. Tree-sitter aims to be:

- General enough to parse any programming language
- Fast enough to parse on every keystroke in a text editor
- Robust enough to provide useful results even in the presence of syntax errors
- Dependency-free so that the runtime library (which is written in pure C) can be embedded in any application

 Links
- Documentation
- Rust binding
- Wasm binding
- Command-line interface

[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix

Top issues

Discussions

Latest release

v0.27.2 v0.27.2 2026-11-07
What's Changed
 fix(cli): detect corpus parse errors from the tree by @tree-sitter-ci-bot[bot] in https://github.com/tree-sitter/tree-sitter/pull/6030
 fix(lib): only match the whole name ERROR in ts_language_symbol_for_name by @tree-sitter-ci-bot[bot] in https://github.com/tree-sitter/tree-sitter/pull/6031
 fix(wasm): copy all supertype map entries by @tree-sitter-ci-bot[bot] in https://github.com/tree-sitter/tree-sitter/pull/6036
 fix: Windows symbol visibility backport by @WillLillis in https://github.com/tree-sitter/tree-sitter/pull/6051
 fix(lib): handle terminal ERROR nodes in ts_no

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON