1) Will the "{*}" syntax to invoke an external action method from within a grammar be an official part of the language, or an implementation hack?

2) If it becomes official, how should people specify the action class/ instance to be used with a grammar?


Currently in Rakudo, I use the following deprecated hack:

      my $method := &My::Grammar::TOP;
      my $match := $str.$method(:action(My::Grammar::Actions.new));

but I'd greatly prefer something more like

      my $grammar = My::Grammar.new(:action(My::Grammar::Actions.new));
      my $match = $str ~~ $grammar;

Chris

Reply via email to