> -----Original Message-----
> From: Chris Gehlker [mailto:gehlker / fastq.com]
> Sent: Monday, March 04, 2002 10:17 AM
> To: ruby-talk ML
> Subject: Re: RubyStudio UI Question
>
>
> On 3/3/02 10:20 PM, "Curt Hibbs" <curt / hibbs.com> wrote:
>
> > Chris Gehlker wrote:
> <SNIP>
>
> > In any case, even when they are turned off its still nice to
> have a "format
> > source code" command that will reformat the code in the current file (or
> > within the current selection).
>
> Good idea.
> --

Is your system written in ObjC...or Ruby-Cocoa?

If ObjC you should look at the parse.y file in the standard Ruby distro
(which uses YACC) to figure out how to lex the laguage.

If its in Ruby, you may want to look at Ruby lexers.  RDOC includes one (its
how dave pulls the ruby structure for documentation purposes).  There is
also Rockit.  The Ruby Developer's Guide (recent book) has a really good
chapter of parsers in it.

-Rich