Global symbol "$EVAL_ERROR" requires explicit package name

2015-11-26 Thread Cev Ing
When I try the example from the synopsis of Scanless::R, I get the error

Global symbol "$EVAL_ERROR" requires explicit package name

https://metacpan.org/pod/distribution/Marpa-R2/pod/Scanless/R.pod#Synopsis

Is it necessary to import the variable from a Marpa package?

-- 
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 marpa-parser+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Global symbol "$EVAL_ERROR" requires explicit package name

2015-11-26 Thread Jeffrey Kegler
Also, one feature of Marpa is that *all* examples of code are in the test
suite -- so they all do actually run in some context.

The one for the Scanless::R synopsis is in t/sl_gyn.t.  Note that, in the
test suite, the context may be some intricate framework required by the
testing, but it nonetheless will be a context in which the example was made
to work.

On Thu, Nov 26, 2015 at 8:11 AM, Ruslan Shvedov <ruslan.shve...@gmail.com>
wrote:

>
>
> On Thu, Nov 26, 2015 at 6:02 PM, Cev Ing <cev...@gmail.com> wrote:
>
>> When I try the example from the synopsis of Scanless::R, I get the error
>>
>> Global symbol "$EVAL_ERROR" requires explicit package name
>>
>> https://metacpan.org/pod/distribution/Marpa-R2/pod/Scanless/R.pod#Synopsis
>>
>> Is it necessary to import the variable from a Marpa package?
>>
> Nope, you an add use English; -- it's a long name for eval's return value.
>
> But then you'll have to add the grammar and input string.
>
> If you need a full runnable example, the code from
> https://metacpan.org/pod/distribution/Marpa-R2/pod/Scanless.pod#Synopsis
> will serve you better.
>
>
>>
>> --
>> 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 marpa-parser+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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 marpa-parser+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 marpa-parser+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Global symbol "$EVAL_ERROR" requires explicit package name

2015-11-26 Thread Cev Ing


Am Donnerstag, 26. November 2015 17:12:10 UTC+1 schrieb rns:
>
>
> Nope, you an add use English; -- it's a long name for eval's return value.
>

Ah thanks I got it. Never used the English packages.
 

> If you need a full runnable example, the code from 
> https://metacpan.org/pod/distribution/Marpa-R2/pod/Scanless.pod#Synopsis 
> will serve you better.
>

I was looking for an example with actions. The example of Scannless just 
blesses and traverses the blessed objects.

-- 
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 marpa-parser+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Global symbol "$EVAL_ERROR" requires explicit package name

2015-11-26 Thread Ruslan Shvedov
On Thu, Nov 26, 2015 at 6:51 PM, Cev Ing  wrote:

>
>
> Am Donnerstag, 26. November 2015 17:12:10 UTC+1 schrieb rns:
>>
>>
>> Nope, you an add use English; -- it's a long name for eval's return value.
>>
>
> Ah thanks I got it. Never used the English packages.
>
>
>> If you need a full runnable example, the code from
>> https://metacpan.org/pod/distribution/Marpa-R2/pod/Scanless.pod#Synopsis
>> will serve you better.
>>
>
> I was looking for an example with actions. The example of Scannless just
> blesses and traverses the blessed objects.
>
Then, per Jeffrey's advice, you can adapt code from
https://github.com/jeffreykegler/Marpa--R2/blob/master/cpan/t/sl_gsyn.t


>
> --
> 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 marpa-parser+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 marpa-parser+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.