~/talk

My Little Parser: Tooling is Magic

slides:none on file

Explains how parsing source to an AST plus CSS‑like selectors lets you find and rewrite real code patterns, not just grep text. Uses esprima/acorn for parsing and falafel plus the module casauron to match nodes; demos include locating HTML concatenation inside BinaryExpression literals to spot XSS and a Rewrite‑JS pipeline that replaces require('tape') with require('assert'), maps test.end to done and tape.equal to strictEqual across a repo. Runs over whole codebases and emits rewritten files.

AI-written summary · about

  1. 0:00Code as text vs structure
  2. 2:06Understanding the AST
  3. 5:55Tools for AST manipulation
  4. 8:55CSS selectors on trees
  5. 12:27CSSauron and JS tools
  6. 15:18Practical code analysis
  7. 21:04Automated refactoring
  8. 25:18The future of AST tools
~/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.