What grammar based parser-generator tools exist for ruby?
Posted
by cartoonfox
on Stack Overflow
See other posts from Stack Overflow
or by cartoonfox
Published on 2010-05-24T13:05:04Z
Indexed on
2010/05/24
14:31 UTC
Read the original article
Hit count: 287
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. I think it's a better strategy than my first-order solution: http://github.com/dafydd/semantictext/blob/master/lib/semantictext/rich_text_parser.rb
© Stack Overflow or respective owner