[#8815] Segfault in libc strlen, via rb_str_new2 — "Sean E. Russell" <ser@...>

Howdy,

12 messages 2006/09/09
[#8817] Re: Segfault in libc strlen, via rb_str_new2 — Eric Hodel <drbrain@...7.net> 2006/09/09

On Sep 8, 2006, at 10:10 PM, Sean E. Russell wrote:

Re: documentation of ruby internals

From: Eric Hodel <drbrain@...7.net>
Date: 2006-09-14 20:27:42 UTC
List: ruby-core #8873
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




In This Thread