From: Charles Thornton Date: 2008-02-09T19:18:29+09:00 Subject: Re: IRHG -- Dumping T-Nodes Eric Hodel wrote: > On Feb 9, 2008, at 24:03 AM, Charles Thornton wrote: > >> OK - Here is the problem >> >> I want to modify 1.8.6 source to allow >> the printing of the completed T_NODE >> structure (the AST?) in my own format. >> >> I assume that I can write a Ruby Callable >> extension that can dump the T_NODE >> structure at the time of my call. >> >> Can this be done, and can someone >> give the bare essentials on how to do it. > > Look at the ParseTree gem. > > > > I have been looking a 'rubynode' . The problem is I don't have a clear idea of the actual structure of the AST. I assume that their is a tree structure of Nodes What I need to know is the BASIC outline of structures, the head ot the AST, and how NODES a linked or referenced. I know the a T_NODE object can point a other T_NODE object (u1,u2,u3), But beyond that I am floundering a bit. Chuck T.