~/talk

Syntax Tree

Talkat RubyConf Mini 2022 · 2022-11-15..11-17· [ruby, developer-experience]
slides:none on file

Syntax Tree is a concrete Ruby object layer that takes Ripper output and builds an immutable AST (about 162 nodes), provides a formatter powered by a prettier printer and a new prettier_print gem, a CLI with match/search pattern tools, and a working language server for format-on-save. It translates to other ASTs (ruby_parser, Whitequark) and even to YARV bytecode, supports visitor-based mutation for codemods, and already runs as a usable formatter and LSP implementation.

AI-written summary · about

  1. 0:00Syntax Tree project intro
  2. 2:18What is a parser
  3. 3:43Building syntax trees
  4. 6:30Visitor pattern explained
  5. 9:20Syntax Tree project features
  6. 10:22Ruby syntax tree
  7. 12:30Ripper syntax trees
  8. 14:55Handling Ruby comments
  9. 15:57Inspecting syntax trees
  10. 17:01Pretty printing algorithms
  11. 20:30CLI tools
  12. 22:15Language server integration
  13. 24:00Translating syntax trees
  14. 26:49Use cases and plans
  15. 27:11Q&A
~/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.