You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<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. :-)
<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. :-)
Migrated from rt.perl.org#122972 (status was 'open')
Searchable as RT122972$
The text was updated successfully, but these errors were encountered: