Subject: | Can't locate object method "rule_lhs" via package "grammar_c" |
Hello,
With the test program in attachment there is:
Can't locate object method "rule_lhs" via package "grammar_c" (perhaps
you forgot to load "grammar_c"?) at
/usr/local/lib/perl/5.14.2/Marpa/R2/Value.pm line 425.
Regards, Jean-Damien.
Subject: | test2.pl |
#!env perl
use Marpa::R2;
our $GRAMMAR = Marpa::R2::Scanless::G->new({source => \(<<'END_OF_SOURCE'),
:start ::= mystart
mystart ::= TOKEN1
|| TOKEN2
TOKEN1 ~ '1'
TOKEN2 ~ '2'
END_OF_SOURCE
});
Marpa::R2::Scanless::R->new( { grammar => $GRAMMAR} );