An incremental parsing system for programming tools https://tree-sitter.github.io
Find a file
Max Brunsfeld 0dd41f0d74 Restore logic for restricting keyword tokens
Removing this restriction created problems for the Rust grammar, and
possibly others. The proper fix would be to ensure that the 'word
token' matches *every* possible string that a 'keyword token'
matches, as opposed to just matching *some* of the same strings.
This would require us to gather a little more information
about how tokens conflict. For now, I'm just going to put back the
hard-coded logic that we had.
2018-06-15 13:15:02 -07:00
docs Fix links in docs 2018-06-14 15:27:28 -07:00
externals ⬆️ utf8proc, use new UTF8PROC_STATIC macro 2018-05-18 10:25:55 -07:00
include/tree_sitter Perform keyword optimization using explicitly selected word token 2018-06-14 09:35:54 -07:00
script Tweak docs styling, add serve-docs script 2018-06-12 17:58:38 -07:00
src Restore logic for restricting keyword tokens 2018-06-15 13:15:02 -07:00
test Avoid missing field initializer warnings w/o default field syntax 2018-06-14 11:12:04 -07:00
.clang-format Auto-format: no single-line functions 2015-07-31 16:32:24 -07:00
.clang_complete Add test for an example found during fuzzing 2017-06-30 21:55:50 -07:00
.gitignore Ignore log file 2018-04-02 09:15:11 -07:00
.gitmodules Use my fork of crypto-algorithms 2017-07-10 14:29:14 -07:00
.travis.yml Only build master and PRs on travis 2017-07-12 21:40:57 -07:00
appveyor.yml Disable git's CRLF-conversion feature 2017-08-09 09:41:51 -07:00
LICENSE Add MIT license 2017-05-03 10:32:12 -07:00
project.gyp Make ts_compile_grammar take an optional log file, start logging to it 2018-05-24 16:01:14 -07:00
README.md Link to the documentation site from the README 2018-06-12 17:43:55 -07:00
tests.gyp Link tests against libpthread on linux 2018-05-11 17:19:16 -07:00

tree-sitter

Build Status Build status

Tree-sitter is 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 (and written in pure C) so that it can be embedded in any application

Documentation