# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #122972]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=122972 >


<timotimo> m: grammar Test { token TOP { <Foo(1)> }; proto token
Foo(Int) {*}; token Foo:sym<a>(Int $a) { "a" }; token Foo:sym<b>(Int
$a) { "b" } }; say Test.parse("a");
<camelia> rakudo-moar 8b3e8c: OUTPUT«Too few positionals passed;
expected 2 arguments but got 1␤  in regex Foo:sym<a> [...]
<timotimo> ven++ stumbled upon this
* masak submits rakudobug
<timotimo> that should work, right?
<masak> yes.
<pmnexus> It's very likely to be NYI, I think
<timotimo> huh
<timotimo> aren't we using something like that in rakudo's own grammar
all the time?
<pmnexus> A proto regex with params? Could be, but it'd be new to me
<pmnexus> Also, Rakudo doesn't compile Rakudo's grammar. :-)

Reply via email to