Rebuilding the Tower of Babel

Write Your Own Language Server with Tree-sitter. Slides, code and links from my talk at EuroRust 2026: write one Tree-sitter grammar for your niche language, and get syntax highlighting, formatting, a language server and a linter out of it, all in Rust.

Talk at EuroRust 2026

October 15, 2026 · 14:30–15:00 · Side Track
Architecture: one grammar.js powers highlighting, formatting, the language server and the linter

Slides

Handout

All slides in their final state, one page per slide (PDF, 54 pages, 8 MB).


Code

tree-sitter-foobar

The Tree-sitter grammar of the foobar language from the talk, with its highlighting and formatting queries.

tree-sitter
grammar
highlights.scm
formatting.scm

foobar-language-server

Language server, linter and formatter in one binary: foobar lsp, foobar lint and foobar fmt.

rust
lsp
tree-sitter
linter
formatter

Crates


Further reading