Simple rules parser for Marpa

I had a nice idea a few days ago. A simple module that creates the rules part of a Marpa grammar, but without code generation and lexers. Just the bit that Marpa::XS::Grammar uses. So I wrote it in a few minutes. It’s not really complicated and provides an example how to write a short parser. Lets start with a short example of what you would write. use Marpa::XS; use MarpaX::Simple::Rules 'parse_rules'; my $rules = parse_rules(<<"RULES"); RULES my $grammar = Marpa::XS::Grammar->new({ rules => $rules, ....

April 14, 2012