Skip to content

tree-sitter

DOI

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

Pinned Loading

  1. tree-sitter tree-sitter Public

    An incremental parsing system for programming tools

    Rust 19.4k 1.6k

  2. node-tree-sitter node-tree-sitter Public

    Node.js bindings for tree-sitter

    JavaScript 677 120

  3. py-tree-sitter py-tree-sitter Public

    Python bindings to the Tree-sitter parsing library

    C 948 112

  4. go-tree-sitter go-tree-sitter Public

    Go bindings for tree-sitter

    C 51 12

  5. tree-sitter-python tree-sitter-python Public

    Python grammar for tree-sitter

    JavaScript 394 142

  6. tree-sitter-javascript tree-sitter-javascript Public

    Javascript grammar for tree-sitter

    JavaScript 377 119

Repositories

Showing 10 of 55 repositories
  • kotlin-tree-sitter Public

    Kotlin bindings to the Tree-sitter parsing library

    tree-sitter/kotlin-tree-sitter’s past year of commit activity
    Kotlin 19 MIT 2 3 1 Updated Jan 24, 2025
  • tree-sitter.github.io Public

    Source HTML for the Tree-sitter organization site

    tree-sitter/tree-sitter.github.io’s past year of commit activity
    JavaScript 17 12 0 0 Updated Jan 24, 2025
  • tree-sitter-css Public

    CSS grammar for Tree-sitter

    tree-sitter/tree-sitter-css’s past year of commit activity
    JavaScript 98 MIT 37 1 0 Updated Jan 24, 2025
  • tree-sitter-c-sharp Public

    C# Grammar for tree-sitter

    tree-sitter/tree-sitter-c-sharp’s past year of commit activity
    JavaScript 208 MIT 56 18 (4 issues need help) 3 Updated Jan 24, 2025
  • tree-sitter-c Public

    C grammar for tree-sitter

    tree-sitter/tree-sitter-c’s past year of commit activity
    JavaScript 255 MIT 110 28 4 Updated Jan 24, 2025
  • tree-sitter-regex Public

    Tree-sitter parser for regular expressions

    tree-sitter/tree-sitter-regex’s past year of commit activity
    JavaScript 78 MIT 23 0 0 Updated Jan 24, 2025
  • tree-sitter-embedded-template Public

    Tree-sitter grammar for embedded template languages like ERB, EJS

    tree-sitter/tree-sitter-embedded-template’s past year of commit activity
    JavaScript 64 MIT 19 4 4 Updated Jan 24, 2025
  • tree-sitter-jsdoc Public

    JSDoc grammar for Tree-sitter

    tree-sitter/tree-sitter-jsdoc’s past year of commit activity
    JavaScript 35 MIT 19 5 4 Updated Jan 24, 2025
  • tree-sitter-bash Public

    Bash grammar for tree-sitter

    tree-sitter/tree-sitter-bash’s past year of commit activity
    C 217 MIT 66 35 0 Updated Jan 24, 2025
  • tree-sitter-cpp Public

    C++ grammar for tree-sitter

    tree-sitter/tree-sitter-cpp’s past year of commit activity
    JavaScript 284 MIT 91 30 4 Updated Jan 24, 2025