Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

A Compiler Quality Ruby Lexer in Ruby

3 views
Skip to first unread message

Peter Suk

unread,
Apr 18, 2005, 1:32:38 AM4/18/05
to
Folks,

Does anyone know of a program in Ruby that 100% accurately lexes Ruby
1.8? I am prepared to translate a Ruby lexer into Ruby, but I'd rather
have one that's already written.

--Peter


--
There's neither heaven nor hell, save what we grant ourselves.
There's neither fairness nor justice, save what we grant each other.

Simon Strandgaard

unread,
Apr 18, 2005, 2:08:05 AM4/18/05
to
On 4/18/05, Peter Suk <peter.kwa...@mac.com> wrote:
> Does anyone know of a program in Ruby that 100% accurately lexes Ruby
> 1.8? I am prepared to translate a Ruby lexer into Ruby, but I'd rather
> have one that's already written.

I think Ripper is the most popular one.

http://rubyforge.org/projects/ripper/


--
Simon Strandgaard

Peter Suk

unread,
Apr 18, 2005, 1:56:01 PM4/18/05
to
On Apr 18, 2005, at 1:08 AM, Simon Strandgaard wrote:

> On 4/18/05, Peter Suk <peter.kwa...@mac.com> wrote:
>> Does anyone know of a program in Ruby that 100% accurately lexes Ruby
>> 1.8? I am prepared to translate a Ruby lexer into Ruby, but I'd
>> rather
>> have one that's already written.
>
> I think Ripper is the most popular one.

I think I cannot use Ripper for my purposes, since its functionality is
not 100% implemented in Ruby. It is partially implemented in C in the
Matz Ruby VM. I need a Ruby lexer & parser implemented 100% in Ruby.

0 new messages