cardinal-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Cardinal-dev] There Is No Wheel


From: Sean Chittenden
Subject: Re: [Cardinal-dev] There Is No Wheel
Date: Wed, 20 Nov 2002 16:41:06 -0800
User-agent: Mutt/1.4i

> [snip]
> > > http://www.pragmaticprogrammer.com/ruby/downloads/files/nodeDump-0.1.7.tgz
> >
> > nodeDump prints out a representation of the internal parsetree for a Ruby
> > program, but as far as I can tell, it doesn't return an AST that can be
> > walked from within Ruby.
> 
> I didn't like ruth's inspect method much for showing a tree, but I played
> around with adding a 'show' method to TreeNode, and formatting things a bit
> nicer.  The ruth parser is the best so far; the parrot/languages/ruby one
> choked on '$0', for example (yep, I wrote a ruby script that parsed itself).

While the grammar may be slightly older, have you tried using ripper?
If so, I'm curious as to your reactions/thoughts.  -sc

--
Sean Chittenden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]