🕸️Tree-sitter
Also known as Tree-sitter Parser, Tree Sitter, Incremental Parser
A fast tool that turns code into a tree of parts. It keeps up as you type.
Think of it like
It is like a quick reader. Change one word, and it redraws the plan of the story.
Example
An editor uses Tree-sitter to colour a Python file. Each key Lucy presses updates the tree at once.
Why it matters
Definition
Common mistake
Key takeaways
- 1Syntax tree. Code becomes a tree of parts.
- 2Incremental. Only the changed part is redone.
- 3Error tolerant. Broken code still parses.