10 #let us play nice with others
11 use POSIX
qw(nice); nice
19;
19 my $txt = Encode
::decode
('utf8', `cat $file`);
20 $loc[length($txt) - 1] = [];
22 STD
->parsefile($file, actions
=> 'Actions');
24 my ($last_tree,$buffer) = ("","");
25 for my $i (0 .. @loc-1) {
26 say("Undefined $i"),next unless defined $loc[$i];
27 my $c = substr($txt,$i,1);
29 for my $action_ref (@
{$loc[$i]}) {
30 $tree .= ${$action_ref} . " ";
32 if($tree ne $last_tree) {
33 say "\n'$buffer'\n$last_tree" if $buffer ne '';
42 ###################################################################
53 $AUTOLOAD =~ s/^Actions:://;
54 $loc[$P] = [] if $loc[$P]; # in case we backtracked to here
55 my $action = $AUTOLOAD;
56 my $action_ref = $actions{$action};
58 $actions{$action} = $action_ref = \
$action;
61 unshift @
{$loc[$_]}, $action_ref;