~/talk

Improving Swift Tools with libSyntax

slides:none on file

libSyntax provides a concrete tree that preserves every token and trivia, exposes three construction APIs (make/with/builder APIs) and lets code be transformed by visitors like SyntaxRewriter passes. Demo builds a small Swift formatter that runs three token-level passes to fix brace placement, normalize spacing around =, and remove unnecessary semicolons; the demo runs and rewrites files live. Library is usable for formatting now but the parser integration is incomplete so many nodes appear as unknown and need further work.

AI-written summary · about

  1. 0:00Introduction
  2. 0:38Compilers
  3. 3:25Swift AST
  4. 4:20libSyntax
  5. 5:06Syntax Transformation
  6. 6:19Syntax Tree Structure
  7. 7:41Trivia Rules
  8. 9:49SyntaxData
  9. 10:48SyntaxNodes
  10. 11:28SyntaxAPIs
  11. 11:52MakeAPIs
  12. 12:33Transform Nodes
  13. 13:03Builders
  14. 14:17Guiding Principles
  15. 15:18Demo
  16. 20:27Conclusion
~/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.