An incremental parsing system for programming tools https://tree-sitter.github.io
Find a file
Ronan Cherrueau ⚓ b65582797a
Fix the Getting Started example in docs (#588)
Running the first example of the Getting Started failed with:

  main: Assertion `strcmp(ts_node_type(root_node), "value") == 0' failed.

The cause is the json parser that renamed the entry rule from `value` to
`document` in commit tree-sitter/tree-sitter-json@1e4abcc. This commit
update the example in docs to fix the assert.
2020-04-03 11:35:31 -07:00
cli Fix incorrect parent values after call to child_by_field_name 2020-04-03 11:21:51 -07:00
docs Fix the Getting Started example in docs (#588) 2020-04-03 11:35:31 -07:00
highlight Remove unused serde dependency from highlight crate 2020-03-25 12:49:11 -07:00
lib Fix incorrect parent values after call to child_by_field_name 2020-04-03 11:21:51 -07:00
script Fix incremental parsing problem with non-terminal extras 2020-03-02 14:17:12 -08:00
tags Clear QueryCursor state between exec calls 2020-03-26 16:10:39 -07:00
test Update error recovery test to reflect JS grammar changes 2020-01-28 09:16:36 -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 Merge branch 'master' into tags 2020-03-25 12:49:15 -07: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