My goal is create rule "peep", which allow to see current parse tree for 
any rule. To use it you shall append "action => peep" and see how parse 
tree looks, but don't change parse tree itself. Code

sub MyActions::peep {
print "peep:\n";
print Dumper(\@_);
return \@_;
}

allows to see parse tree fragment, but it changes that tree: results with 
action "peep" and without are differrent.

> you can create a generic peep_seq() using a context variable to get the 
rule ID
Sounds as possible solution, but I don't know get current rule ID inside an 
action. Can you help me?

Thank you in advance,
*Maxim Suslov*.


-- 
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/d/optout.

Reply via email to