Hacking parse.y 3.88 http://spkr8.com/t/1804

Description:

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 }
end

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

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

Comments on this Talk

Have an account? Sign in or register.

Leave a Comment

5 Ratings: 3.88

Delivery: 3.46

Content: 4.30

Last Five Ratings