Jim Freeze
11/7/2003 1:17:00 PM
On Friday, 7 November 2003 at 15:04:33 +0900, Luke A. Kanies wrote:
> Hi all,
>
> So, my question is: Is there a good parsing solution in ruby right now?
> I really don't want to write my own, as I don't think I'm up to it (I'm
> barely up to writing the parser with a parser compiler), but I really
> would like to use ruby, as all of my prototype code is in ruby and it has
> worked smashingly.
>
> I've read through the ruby-talk archives, and what consensus I could find
> there seemed to point to racc, so maybe I just need someone to correct my
> ideas about how racc works and whether I should use it. I'm not
> particularly attached to yacc-like functionality, as I've really only used
> it once, but I am definitely concerned about speed.
>
I have used racc successfully on a project and did not have a problem
with speed. Howver, there are ways to speed up racc when needed.
Also, you could write your parser in C (IIRC, YAML started out in racc and
went to C. Ask Why.) I am no expert, but I can probably get you going
if you choose racc.
There is also rbison, but I am not familar with the differences between
it and racc, although I think it offers roughly the same features as
racc.
And, rockit is being re-written in C and should be released now, but I
haven't followed its progress.
--
Jim Freeze
----------