Skip Menu |

This queue is for tickets about the Marpa-R2 CPAN distribution.

Report information
The Basics
Id: 83601
Status: resolved
Priority: 0/
Queue: Marpa-R2

People
Owner: Nobody in particular
Requestors: feratilbeau [...] hotmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.047_006
Fixed in: (no value)



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} );
This was a problem in an error message about the use of "whatever" semantics. At this point because of my optimizations to the "thick" valuator, "whatever" semantics buys very little speedup, at a big cost in complexity of the code and documentation. My fix was to change the thick recognizer and valuator to never use "whatever" semantics. Whatevers are now always Perl undefs. The fix is in Marpa-R2 2.047_007, which also fixes "trace_lexemes" issue. Thanks!