On Sep 14, 2006, at 4:38 AM, Deni George wrote:
> A. S. Bradbury wrote:
>> On Thursday 14 September 2006 11:30, Deni George wrote:
>>> Hello
>>>   Can I get some documentation regarding the internal working of  
>>> Ruby.
>>
>> I'm not sure what else is available, but the work that's been  
>> doing on translating the Ruby Hacking Guide looks promising
>> http://rhg.rubyforge.org/
>
> I particularly wanted to know how the evaluator  works  ... what is  
> the intermediate representation and so on.

parse_tree_show from the ParseTree gem will show you the internal  
representation.

$ parse_tree_show -f
name = "Eric Hodel"
5.times do puts "Hello #{name}!" end
[[:lasgn, :name, [:str, "Eric Hodel"]],
[:iter,
   [:call, [:lit, 5], :times],
   nil,
   [:fcall, :puts, [:array, [:dstr, "Hello ", [:lvar, :name], [:str,  
"!"]]]]]]

-- 
Eric Hodel - drbrain / segment7.net - http://blog.segment7.net

A: Yes
Q: Is top-posting bad?
  Derek Milhous Zumsteg