At some point it may make sense to allow a resolve_name() callback,
which will allow the user to write their own code to resolve names.
As an aside, Marpa's development has coincided with a time during which
OO experimentation was very fashionable. A few people have looked at
Marpa and seen it as an OO experiment wanting to happen. I keep the OO
to a minium because IMHO a lot of open source R&D time is being lost
because of excessive interest in OO.
-- jeffrey
On 12/22/2013 02:49 PM, Durand Jean-Damien wrote:
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
<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.
--
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.