A comment: I realise that, since Marpa is using the *codename{'CODE'}
method to resolve the actions, semantic_package, and probably action_object
as well, must give a package name that explicitely provide slots for
actions in its namespace. I.e. Marpa does not work with packages that would
use the:
use parent 'Parent::Package';
method, letting inheritance do its role (example: the action named myAction
in somewhere else), but only with:
use parent 'Parent::Package';
user SUPER;
sub myAction {
# eventually calling super() is enough
}
I have not checked yet with Moose family, but I suppose this is the same
thing.
Fine with me, but perhaps to be mentionned in the doc, if not already in.
Thanks / JD.
Le dimanche 22 décembre 2013 19:22:14 UTC+1, Durand Jean-Damien a écrit :
>
> Tested OK - Thanks / JD.
>
> Le dimanche 22 décembre 2013 18:12:39 UTC+1, Jeffrey Kegler a écrit :
>>
>> Thanks for finding this. Fixed in commit
>> ddcb710ae7b7891a65aa228422e69c334c850111. -- jeffrey
>>
>> On 12/22/2013 08:20 AM, Durand Jean-Damien wrote:
>>
>> Jeffrey,
>>
>> Is semantics_package's new() method supposed to be called if it exist ?
>>
>> C.f. file attached.
>>
>> Thanks / JD.
>>
>> --
>> 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.