NAME

MarpaX::Simple::Rules - Simple definition language for rules

SYNOPSYS

use Marpa::XS;
use MarpaX::Simple::Rules 'parse_rules';

my $rules = parse_rules(<<"RULES");
Parser     ::= Expression      => Action_1
Expression ::= Expression      => Action_2
RULES

my $grammar = Marpa::XS::Grammar->new({
    start => 'Parser',
    rules => $rules,
});

DESCRIPTION

MarpaX::Simple::Rules is a specification language that allows us to write the parameter for the rules argument of Marpa::XS grammar as a string.

The goal is to provide a language that will let you create all possible ways that rules can be written in a short and simple way.