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.5k 1.6k

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

    Node.js bindings for tree-sitter

    JavaScript 686 123

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

    Python bindings to the Tree-sitter parsing library

    C 965 113

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

    Go bindings for tree-sitter

    C 60 13

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

    Python grammar for tree-sitter

    JavaScript 402 144

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

    Javascript grammar for tree-sitter

    JavaScript 386 121

Repositories

Showing 10 of 56 repositories
  • tree-sitter Public

    An incremental parsing system for programming tools

    tree-sitter/tree-sitter’s past year of commit activity
    Rust 19,526 MIT 1,615 141 15 Updated Feb 10, 2025
  • tree-sitter-c-sharp Public

    C# Grammar for tree-sitter

    tree-sitter/tree-sitter-c-sharp’s past year of commit activity
    JavaScript 211 MIT 58 20 (4 issues need help) 2 Updated Feb 9, 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 18 12 0 0 Updated Feb 8, 2025
  • workflows Public

    Reusable workflows for tree-sitter parsers

    tree-sitter/workflows’s past year of commit activity
    18 10 0 0 Updated Feb 8, 2025
  • tree-sitter-c Public

    C grammar for tree-sitter

    tree-sitter/tree-sitter-c’s past year of commit activity
    JavaScript 259 MIT 113 28 4 Updated Feb 8, 2025
  • zig-tree-sitter Public

    Zig bindings to the Tree-sitter parsing library

    tree-sitter/zig-tree-sitter’s past year of commit activity
    Zig 9 MIT 1 0 1 Updated Feb 8, 2025
  • java-tree-sitter Public

    Java bindings to the Tree-sitter parsing library

    tree-sitter/java-tree-sitter’s past year of commit activity
    Java 39 MIT 11 1 0 Updated Feb 8, 2025
  • tree-sitter-cpp Public

    C++ grammar for tree-sitter

    tree-sitter/tree-sitter-cpp’s past year of commit activity
    JavaScript 291 MIT 95 30 1 Updated Feb 6, 2025
  • py-tree-sitter Public

    Python bindings to the Tree-sitter parsing library

    tree-sitter/py-tree-sitter’s past year of commit activity
    C 965 MIT 113 2 (2 issues need help) 2 Updated Feb 4, 2025
  • go-tree-sitter Public

    Go bindings for tree-sitter

    tree-sitter/go-tree-sitter’s past year of commit activity
    C 60 MIT 13 1 2 Updated Feb 2, 2025