Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What grammar based parser-generator tools exist for ruby?

Tags:

parsing

ruby

What open source (preferably gem-based) parser-generator options do I have in Ruby?

I've used (flex&bison)|(lex&yacc) from C in the past, and I'm comfortable with BNF-style specifications.

I've heard of treetop, but it looks a bit alien and verbose compared to yacc...

Purpose: I want to convert my text markup language to a BNF and generate the parsing code.

like image 977
Dafydd Rees Avatar asked May 24 '10 13:05

Dafydd Rees


1 Answers

Have you looked at rex and racc, the gem versions of lex and yacc?

like image 151
mckeed Avatar answered Nov 15 '22 23:11

mckeed