~/talk

How to Make a Programming Language

Talkat REFACTR.TECH 2019 · 2019-06-05..06-07· [compilers-and-language-design]
name:Toby Ho
links:none on file
slides:none on file

Shows how to build a tiny language using the Nearley parser generator to produce an AST, then transpiles to JavaScript as the execution target. Grammar supports integers, decimals, identifiers, binary operators + - × ÷, assignment with :=, print and a while loop; generator emits let versus assignment tracking declarations. The live demo implements Fibonacci (n=10) end-to-end and runs successfully, and the repo/tooling are produced during the demo.

AI-written summary · about

  1. 0:00Introduction
  2. 0:55What is a compiler
  3. 3:23User code
  4. 12:38Parser
  5. 17:28ContextFree Grammar
  6. 19:38Parse
  7. 22:26Variable Assignment
  8. 24:28New Syntax
  9. 27:50Binary Expressions
  10. 36:37Reparse
  11. 41:16Wild Loop
~/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.