From: ara.t.howard@... Date: 2006-06-11T12:45:33+09:00 Subject: Re: Best way to parse Ruby code? On Sun, 11 Jun 2006, Esteban Manchado [iso-8859-1] Vel�zquez wrote: > On Sun, Jun 11, 2006 at 04:15:15AM +0900, Jeff Cohen wrote: >> I'm trying to parse some Ruby code from C#... I just want to scrape out >> the class/module names and the methods defined for each. >> [...] >> Some googling didn't reveal much to me, but I'm hoping someone will know >> of a well-known algorithm or regular expressions that will help me out? > > Well, not an algorithm, but perhaps you can learn from the source of the > Ruby programs that do syntax highlighting to Ruby (see the thread "Colored > syntax output" started by Robert MannI)... > > HTH, check out the rdoc source. -a -- suffering increases your inner strength. also, the wishing for suffering makes the suffering disappear. - h.h. the 14th dali lama