~/talk

Parsing, Compiling, and Static Metaprogramming

Talkat JSConf EU 2013 · 2013-09-14..09-15· [javascript, developer-experience]
slides:none on file

Shows concrete wins and code you can copy: using parsers to add logging to every function automatically, to run presubmit style checks and catch underscore vs camelCase errors, and to extract strings that need translation. Demonstrates building a tiny compiler with a PEG grammar that turns a Smalltalk‑style variable syntax into runnable JavaScript in minutes and explains the exact parse tree edits and code‑generation steps used so the transformations actually work.

AI-written summary · about

  1. 0:00Introduction
  2. 1:27What is a compiler
  3. 2:13Parser and Code Generator
  4. 3:18SPrema
  5. 4:47Parsing Tree
  6. 5:59Code
  7. 7:26Sample Code
  8. 10:15Parse Tree
  9. 11:21Compiling Example
  10. 13:35ContextFree Grammar
  11. 16:06Parsing arithmetic
  12. 16:56Left recursion
  13. 18:37Nested arrays
  14. 19:26PegJS
  15. 20:28Snippet Code
  16. 21:45Arithmetic
  17. 22:55Multiple Expressions
  18. 23:26Parse
  19. 24:22Variable Declarations
  20. 25:11Clean Up
  21. 26:00Conclusion
~/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.