From: "Esteban Manchado Velázquez" Date: 2006-06-11T11:25:27+09:00 Subject: Re: Best way to parse Ruby code? --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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= =20 > 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= =20 > of a well-known algorithm or regular expressions that will help me out?= =20 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, --=20 Esteban Manchado Vel=E1zquez - http://www.foton.es EuropeSwPatentFree - http://EuropeSwPatentFree.hispalinux.es --EeQfGwPcQSOJBaQU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD4DBQFEi38ChYgK5b1UDsERAnfUAJj925W4gUwNatn1BnqjjL77cqJmAKCBdGKU uQasC/0MlBlosfiDS9jdpg== =+A5d -----END PGP SIGNATURE----- --EeQfGwPcQSOJBaQU--