tree-sitter /tree-sitter
An incremental parsing system for programming tools
★ 27,482⑂ 3,039👁 292⑃ 3,092● 1,910▤ 107
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
#930Tree-sitter 1.0 Checklist34 comments · 2021-02-20#255Helpful parser error messages22 comments · 2018-12-26#5925lib: lexical conflicts can change keyword tokenization21 comments · 2026-09-07#3625proposal: solving major problems with multi-language node injections/extensions17 comments · 2024-09-13#3276Compile-time kind and field ids that are generated by binding generation. 17 comments · 2024-04-10#1870How does one improve the error recovery of a grammar?17 comments · 2022-09-15#645Document how to cleanly extend/require other grammars16 comments · 2020-06-11#5080Grammar scanner functions should have visibility attributes13 comments · 2025-11-21
Discussions
#6145RPG program language parser0 comments · 2026-11-13#6114List of parsers: add xo1 comments · 2026-11-09#6109Confetti grammar to add to the list of parsers Wiki page1 comments · 2026-11-07#6096Add Common Lisp grammars to the wiki parser list1 comments · 2026-11-05#6091Who maintains tree-sitter-typescript now?4 comments · 2026-11-03#6087How to capture `( x y -- )` as a node but not `( x y )`?3 comments · 2026-10-31#6084Adding grammars from grammar-orchard to the wiki1 comments · 2026-10-30#6082Parser list registration: Topaz and Lispex1 comments · 2026-10-29
Latest release
v0.27.2 v0.27.2 2026-11-07What'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