~/talk

Rapid Programming Language Prototypes with Ruby RACC

Talkat RubyConf 2012 · 2012-11-01..11-03· [compilers-and-language-design, ruby]
name:Tom Lee
links:none on file
slides:none on file

Argues that RACC (the Ruby RACC pass generator) lets you prototype compilers faster than yak/bison by keeping everything in Ruby. Demonstrates a hand-written scanner→parser→codegen pipeline: a lexer emitting token pairs, a RACC grammar producing a simple AST, and a C backend that writes source and invokes outputs C and compiles with GCC. Builds a tiny “sucklang”, runs the compiled binary, and iterates live — it works end to end for quick experiments.

AI-written summary · about

  1. 0:00Introduction
  2. 1:20Presentation Outline
  3. 3:07What is a Compiler
  4. 7:48Pipeline Diagram
  5. 8:14About RACC
  6. 8:50Why RACC
  7. 10:56Element sequences
  8. 12:18Scanner
  9. 13:19Scanning Tokens
  10. 18:41Parser
  11. 22:01Commandline invocation
  12. 29:58Code Generator
  13. 40:19Tools
  14. 43:01Testing
  15. 44:26Bridges
  16. 45:02Grammar
  17. 45:51Summary
~/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.