Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Tree-sitter

Source: tree-sitter

Link: https://tree-sitter.github.io

Abstract

This section covers tree-sitter: design philosophy, architecture, usage, and applications.

Problem:

  • IDEs (visual studio, sublime text) used regexes for syntax features before tree-sitter.
  • This caused inconsistent highlighting, fragility, poor performance.

Solution: Tree-sitter provides fast, accurate, incremental parsing for editors and IDEs.

See Strange Loop Talk for more context.