Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use MONKEY_TYPING;
- augment class Grammar {
- method parse($str, :$actions, :$action, *%options) {
- if $action {
- die(":action has been renamed to :actions in the Grammar.parse method")
- }
- my $match = callwith($str, :$actions, |%options);
- say "I'm Dying!"; # this is what is new.
- pir::store_dynamic_lex__vSP('$/', $match);
- $match;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement