Perl 6 Rakudo Perl - Perl 6 on Parrot #39

Action methods in action!

Pure parse rule:

rule statement_control {
    | <if_statement>
    | <while_statement>
    | <for_statement>
    | ...
}

rule while_statement {
    'while' <EXPR> <pblock>
}
continued...
Copyright © 2008
http://www.pmichaud.com/2008/pres/