Skip to content

General FAQ โ€‹

What is tree-sitter.zig? โ€‹

A native Zig implementation of the Tree-sitter parsing runtime: it turns source text into concrete syntax trees, updates them incrementally, and searches them structurally. Version 0.0.1, MIT licensed.

Does it depend on C? โ€‹

No. No C code, no @cImport, no linked C runtime โ€” Zig and its standard library only.

Does it depend on Rust? โ€‹

No.

Does it use the upstream Tree-sitter C runtime? โ€‹

No. Upstream was studied as an algorithmic reference during development; the package vendors no upstream code and links nothing.

Which Zig version? โ€‹

Exactly 0.16.0.

Where do I start? โ€‹

Getting Started, then Your First Parser.

Released under the MIT License.