Main Content

Hacking parse.y

About the Talk

November 19, 2009 12:15 PM

San Francisco

San Francisco

One of the darkest sides of Ruby is the parser. I tried to fix the notation or the syntax of ruby so as to understand the MRI implementation more deeply. This talk will introduce how input codes are parsed, and how to cook the parser for a programmer who has never looked the ruby implementation's source codes.

Do you imagine the world like the following Ruby code works?

def MyClass#hi(x)
  {:aaa => ++x, 'bbb => ++x }

f({|x| x * 2}, {|x, y| x + y}, {1 :-) 2i})

It would be better you fetch and build Ruby1.9.2dev in advance.

Ratings and Recommendations

Avg. Rating

Average based
on 5 ratings

comments powered by Disqus