Caleb Clausen
9/5/2008 6:10:00 PM
On 9/2/08, Roger Pack <rogerpack2005@gmail.com> wrote:
>> RubyLexer is a lexer library for Ruby, written in Ruby. Rubylexer is
>> meant
>> as a lexer for Ruby that's complete and correct; all legal Ruby
>
> What's its relationship to ruby_parser and racc?
> Thanks!
Sorry for the late reply.
Racc is a ruby-based compiler compiler. As far as I know, it's a
variant of yacc; but using ruby in actions and generated code instead
of c. Ruby_parser is a parser for ruby written in racc/ruby.
Ruby_parser is a port of the yacc/c code used to parse ruby in MRI. It
has it's own lexer, a port of the MRI c lexer. There is no dependency
between them. The two libraries are trying to accomplish similar
goals, but RubyParser doesn't take the process quite as far.