SaaSHub helps you find the best software and product alternatives Learn more →
Tree-sitter Alternatives
Similar projects and alternatives to tree-sitter
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
-
-
-
-
-
-
-
packer.nvim
A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
-
-
-
-
-
-
-
Comment.nvim
:brain: :muscle: // Smart and powerful comment plugin for neovim. Supports treesitter, dot repeat, left-right/up-down motions, hooks, and more
-
-
-
-
tree-sitter discussion
tree-sitter reviews and mentions
-
Architecture Teardown: How Meta Trains LLMs for Code Generation on 100k GPU Clusters
import hashlib from tree_sitter import Language, Parser # https://github.com/tree-sitter/tree-sitter def normalize_code(content: str, lang: str = \"python\") -> str: parser = Parser() parser.set_language(Language(f\"build/{lang}.so\", lang)) tree = parser.parse(bytes(content, \"utf-8\")) # Return normalized AST string (strip whitespace/comments) return str(tree.root_node) def get_content_hash(content: str) -> str: normalized = normalize_code(content) return hashlib.sha256(normalized.encode(\"utf-8\")).hexdigest()
-
Migrating To Neovim v0.12.0 Challenge Faced And Solution Found
After perusing through this error message, I guessed that it was an issue to do with treesitter as there was a change made about it in the new version. This article explains more about it. So I installed treesitter on my system using cargo.
-
Engineering Backpressure: Keeping AI-Generated Code Honest Across 10 SvelteKit Repos
ast-grep — The newest and most interesting. Uses tree-sitter to match code by structure. Rules are declarative YAML:
-
Show HN: Cdecl-dump: represent C declarations visually
We use the tree-sitter[1] for parsing C declarations in Rizin[2] (see the "td" command, for example). See our custom grammar[3] (modified mainstream tree-sitter-c). The custom grammar was sadly necessary, due to the inability of Tree-Sitter to have the alternate roots[4].
P.S. Please add a license for your code.
[1] https://tree-sitter.github.io/
[2] https://github.com/rizinorg/rizin/tree/dev/librz/type/parser
[3] https://github.com/rizinorg/tree-sitter-c/
[4] https://github.com/tree-sitter/tree-sitter/issues/711
-
Building Code Retrieval for Claude Code from Scratch
This is the default and recommended strategy. Through the tree-sitter parser, it understands the syntactic structure of code and splits according to semantic units.
-
Decoding Tree-sitter Playground Output For Fun
Paste this into the Playground (try it here). You’ll get something like:
-
Diving into Tree-Sitter: Parsing Code with Python Like a Pro
This code sets up a parser for Python code. The tree-sitter-python package provides a precompiled grammar, so no manual compilation is needed. If you’re targeting another language, check for its grammar package on Tree-Sitter Wiki.
-
Making Sense of tree-sitter's C API
The API is defined in tree_sitter/api.h (available on GitHub). It revolves around a few key concepts: parsers, trees, nodes, and queries. Let’s dive into the essentials.
-
Want AI to Actually Understand Your Code? This Tool Says It Can Help
Tree-sitter is a parser generator tool and an incremental parsing library, it is available in Rust 🦀 - GitHub. CocoIndex has built-in Rust integration with Tree-sitter to efficiently parse code and extract syntax trees for various programming languages.
-
Emacs Tree-sitter custom highlighting
I think the main problem is that highligthing framework used by tree-sitter (https://github.com/tree-sitter/tree-sitter/tree/master/highl...) is not easily pluggable into emacs font-lock-mode.
-
A note from our sponsor - SaaSHub
www.saashub.com | 14 Jul 2026
Stats
tree-sitter/tree-sitter is an open source project licensed under MIT License which is an OSI approved license.
The primary programming language of tree-sitter is Rust.
Popular Comparisons
- tree-sitter VS nvim-treesitter
- tree-sitter VS language-server-protocol
- tree-sitter VS sourcegraph
- tree-sitter VS tree-sitter-ebnf-generator
- tree-sitter VS lezer
- tree-sitter VS rizin-grammar-c
- tree-sitter VS difftastic
- tree-sitter VS elisp-tree-sitter
- tree-sitter VS indent-blankline.nvim
- tree-sitter VS TextMate