Re:Perl 6 Grammars – not only for parsing
by colomon on Tuesday November 23, 2010 @04:15PM
(#1935397)
Yes, using
says "Parse $req using grammar Mysite and actions Mysite::Actions.new." When a token is found, the action method with the same name is called. As I understand it, the idea with separating token and action like that is one grammar can be associated with more than one set of actions.
[ Parent
| on HN ]
There are no comments on this comment yet.