~/talk

Syntaxation

Talkat GOTO Aarhus 2013 · 2013-09-30..10-02· [compilers-and-language-design]
slides:none on file

Argues that syntax is overrated and demonstrates a working JavaScript parser built with top-down operator precedence, using a symbol table, tokens with nud/led handlers, numeric binding powers, infix/prefix/fud helpers, and a single expression loop that yields an AST. Shows it handles precedence, left/right associativity, statements, assignments and can run fast enough as an interpreter, support extensible DSLs, eliminate reserved words, and produce semicolon-free grammars; points to simplified JavaScript and JSLint implementations on GitHub.

AI-written summary · about

  1. 0:00Introduction to Syntax
  2. 1:49Syntax vs. Language Design
  3. 5:05Minimalist Syntax Examples
  4. 6:14Evolution of 'if' Statements
  5. 10:25Syntactic Regression in C
  6. 13:20The Danger of Ambiguity
  7. 19:12Top-Down Operator Precedence
  8. 22:47Implementing the Parser
  9. 26:40Defining Operators and BNF
  10. 31:10Parsing Statements and Blocks
  11. 35:04The Core Parsing Algorithm
  12. 37:20Benefits of Pratt Parsing
  13. 39:27Advice for Language Designers
  14. 47:50Q&A and Final Thoughts
~/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.