Changeset 22486 for src/perl6/Cursor.pmc

Show
Ignore:
Timestamp:
10/02/08 19:20:32 (3 months ago)
Author:
lwall
Message:

[STD] more ACTIONS infrastructure, can now set $ACTIONS to a class in which
methods are called according to reduction tag.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/perl6/Cursor.pmc

    r22484 r22486  
    19461946    my $F = $self->{_from}; 
    19471947    $self->{_reduced} = $tag; 
     1948    if ($::ACTIONS) { 
     1949        eval { $::ACTIONS->$tag($self) } 
     1950    } 
    19481951    $self->deb("REDUCE $tag from $F to $P") if $DEBUG & DEBUG::matchers; 
    19491952#    $self->whats;