Fixed in commit fd82c77.  Thanks! -- jeffrey

On 01/16/2014 07:06 AM, Ruslan Shvedov wrote:
I'm trying to use per-traversal object <https://gist.github.com/rns/8456260> in Marpa::R2::ASF (latest dev version, 5.14.2, cygwin) like this:

    $asf->traverse( { 'grammar' => $g }, \&generic_traverser );

and cannot:

    Use of uninitialized value in say at
    C:\cygwin\home\Ruslan\Marpa-R2-work\asf_per_traversal.t line 38.
    Can't call method "symbol_name" on an undefined value at
    C:\cygwin\home\Ruslan\Marpa-R2-work\asf_per_traversal.t line 39.
    Marpa::R2::Scanless::G=ARRAY(0x2008d4e0)


Lines 38 & 39:

38:   say $scratch->{grammar};
39:   my $symbol_name = $scratch->{grammar}->symbol_name($symbol_id);

Am I doing something wrong?



--
You received this message because you are subscribed to the Google Groups "marpa parser" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "marpa 
parser" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to