An incremental parsing system for programming tools https://tree-sitter.github.io
Find a file
Max Brunsfeld 9ffcb16392 Fix tree-balancing logic
Remove incorrect condition that would prevent balancing of repeating 
structures containing only tokens (nodes w/ no children).

Co-Authored-By: Rob Rix <robrix@github.com>
Co-Authored-By: Patrick Thomson <patrickt@users.noreply.github.com>
2020-01-23 10:26:53 -08:00
cli Fix error when set_included_ranges is called with an invalid range list 2020-01-17 10:31:28 -08:00
docs Add PHP parser to web playground 2020-01-17 13:30:02 -08:00
highlight Fix error when set_included_ranges is called with an invalid range list 2020-01-17 10:31:28 -08:00
lib Fix tree-balancing logic 2020-01-23 10:26:53 -08:00
script Test against branches of language repos w/ new injection queries 2020-01-16 12:49:00 -08:00
test Fix code paths that still conflated null characters with EOF 2019-12-06 15:29:03 -08:00
.appveyor.yml Build and test wasm on CI 2019-04-26 14:38:13 -07:00
.gitattributes lib: remove utf8proc dependency (#436) 2019-10-14 11:18:39 -07:00
.gitignore Build and test wasm on CI 2019-04-26 14:38:13 -07:00
.travis.yml Fix home directory name in travis config file 2019-11-22 13:05:46 -08:00
Cargo.lock 0.16.3 2020-01-16 16:18:25 -08:00
Cargo.toml Move code into cli directory 2019-01-04 16:50:52 -08:00
LICENSE Add boilerplate 2018-05-17 14:46:29 -07:00
README.md Use https README docs site link 2019-04-30 13:00:27 -07:00

tree-sitter

Build Status Build status

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

Documentation