Action methods
class Calc::Grammar::Actions;
method integer($/) { say("found an integer", $/); }
method addop($/) { say("found an addop", $/); }
continued...
| Parrot | Perl6Grammar compiler and parsers | #18 |
class Calc::Grammar::Actions;
method integer($/) { say("found an integer", $/); }
method addop($/) { say("found an addop", $/); }
continued...
|
Copyright © 2009 http://www.pmichaud.com/2009/pres/ |