~/talk

Tree-sitter - a new parsing system for programming tools

Talkat Strange Loop 2018 · 2018-09-26..09-28· [developer-experience, web-platform]
slides:none on file

Tree-sitter is a C library with language bindings that provides a uniform C API, fast incremental parsing and robust error recovery for real-time editor use. Parsers are generated from JS grammars into standalone C code; the runtime reuses unchanged subtrees so edits cost only local work — a 600 KB React build parses in about 54 milliseconds. Integration enables accurate syntax highlighting, syntax-aware folding, extend-selection and a GitHub.com file-changes function list — all demonstrated working in Atom and on github.com.

AI-written summary · about

  1. 0:00Introduction
  2. 0:50What is Treesitter
  3. 6:07Syntax Highlighting
  4. 12:28Code Folding
  5. 15:51Extend Selection
  6. 19:31How Treesitter works
  7. 22:28Algorithms
  8. 24:05LR parsing
  9. 26:38Is LR parsing good for all languages
  10. 29:27GLR parsing
  11. 34:36Incremental parsing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.