~/talk

Hacking parse.y

Talkat RubyConf 2009 · 2009-11-19..11-21· [ruby]
slides:none on file

Patch edits parse.y in MRI 1.9.2 and touches a ~10,000+ line parser to add concrete syntax: added ++ operator, hash association as emoticon-style :=, and new symbol quoting. Changes are C and yacc/lex patches that regenerate token tables; building Ruby on stage repeatedly stalls and once segfaults, so demos are flaky. The claim is implementable but invasive: parsing states and lexer transitions change, tests and make install sometimes fail.

AI-written summary · about

  1. 0:00Introduction
  2. 3:18Ruby parse.y basics
  3. 9:03Colon syntax states
  4. 13:37parse.y source structure
  5. 20:53New symbol syntax
  6. 30:29Unary plus operators
  7. 35:53Incremental ++ operator
  8. 41:02Hash emoticon syntax
  9. 46:51No post-increment in Ruby
  10. 51:38Conclusion
~/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.