Looking for a ruby equivalent of python's ply

Hi all, subject says all. am looking a ruby equivalent of python's ply
(lex-yacc). cant google it, so hoping it's just hidden somewhere...

thanks and best regards -botp

botp писал 27.05.2012 06:56:

Hi all, subject says all. am looking a ruby equivalent of python's ply
(lex-yacc). cant google it, so hoping it's just hidden somewhere...

thanks and best regards -botp

Try treetop: http://treetop.rubyforge.org/
It is not very fast (not for megabytes of text), but it's very simple to
use. I also wrote an article with some examples and recipes for avoiding
typical errors: http://whitequark.org/blog/2011/09/08/treetop-typical-errors/

Also, there is racc (ruby's yacc) and antlr-ruby, but these are somewhat more
arcane.

···

--
   WBR, Peter Zotov.

thanks for the info, peter. looking at treetop now.
kind regards -botp

···

On Mon, May 28, 2012 at 8:01 PM, Peter Zotov <whitequark@whitequark.org> wrote:

Try treetop: http://treetop.rubyforge.org/