Subject: | Not an ARRAY reference at /usr/local/lib/perl/5.14.2/Marpa/R2/Scanless.pm line 153. |
Adding something like e.g.:
empty_rule ::=
in a Marpa::R2::Scanless::G grammar gives the error mentionned.
Exemple in attachement.
Subject: | empty_rule.pl |
use Marpa::R2;
my $grammar = Marpa::R2::Scanless::G->new({
source => \(<<'END_OF_SOURCE'),
empty_rule ::=
:start ::= Number
Number ~ [\d]+
END_OF_SOURCE
}
);