Perl 6 Perl 6 #45

The parts of the action method

method if_stmt($/) {
    my $past := PAST::Op.new(
                  $( $<expression> ),    # condition
                  $( $<statement> ),     # eval if true
                  :pasttype('if')
                );
    make $past;
}
Copyright © 2008 Patrick Michaud