tree-sitter

    tree-sitter/tree-sitter

    #267 this week

    An incremental parsing system for programming tools

    backend
    c
    incremental
    parser
    parsing
    rust
    Rust
    MIT
    27.0K stars
    2.9K forks
    27.0K GitHub watchers
    Updated 10/6/2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Use Cases & Benefits

    • Provides an incremental parsing system that builds and updates concrete syntax trees for source code efficiently.
    • Enables fast, robust parsing on every keystroke with no external dependencies, suitable for embedding in various applications.
    • Use for integrating real-time syntax highlighting and error detection in code editors.
    • Use for building language-aware code analysis and refactoring tools that require up-to-date syntax trees.
    • Use for developing custom parsers for any programming language with support for incremental updates.

    About tree-sitter

    tree-sitter

    DOI discord matrix

    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

    Discover Repositories

    Search across tracked repositories by name or description