~/talk

AST Meta-programming

slides:none on file

Shows how to read and modify Swift ASTs and uses three concrete formats: SourceKitten JSON, SwiftSyntax, and dump AST. Builds a token-based syntax highlighter that wraps tokens in span tags and fixes tree structure with visitor pre/post hooks. Ships an online SwiftSC Explorer playground. Implements an AOP tool that intercepts the build, injects print statements into methods whose names start with "view", recompiles, launches the simulator, and confirms logs appear. Implements an assertion converter that uses dump AST type info to capture argument values.

AI-written summary · about

  1. 0:00Intro
  2. 0:42What is AST
  3. 1:21AST
  4. 2:00Metaprogramming
  5. 3:53SauceKit
  6. 11:44Demo
  7. 13:33Practical Example
  8. 14:49Automation
  9. 15:38Demonstration
  10. 19:40Diagrammed assertions
  11. 20:13Dump AST
  12. 23:59Online Playground
  13. 25:06Wrap up
~/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.