Is there a parser generator available with bindings for Ruby? I'm interested
in implementing a server in Ruby for the ACAP protocol and would prefer not
to have to hand-write it.

Thanks,

David Dabbs


"Dave Thomas" <Dave / thomases.com> wrote in message
news:m2g0kng3n7.fsf / zip.local.thomases.com...
> Charles Hixson <charleshixson / earthling.net> writes:
>
> > Does anyone know of a Ruby tokenizer for Ruby?  In particular, I am
bother
> > by how to detect the boundaries of string constants and (to a much
lesser
> > extent) of regular expressions.  The only way I've been able to think of
> > would involve multiple passes throught the code on a byte-by-byte level
(in
> > which case, Ruby is probably the wrong language to write it in).
>
> Have a look at IRB - it have a Ruby lexical analyzer.
>
> Dave
>