Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proto regex with params isn't called correctly (possibly NYI) in Rakudo #3551

Open
p6rt opened this issue Oct 14, 2014 · 3 comments
Open

Proto regex with params isn't called correctly (possibly NYI) in Rakudo #3551

p6rt opened this issue Oct 14, 2014 · 3 comments
Labels
NYI

Comments

@p6rt
Copy link

@p6rt p6rt commented Oct 14, 2014

Migrated from rt.perl.org#122972 (status was 'open')

Searchable as RT122972$

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented Oct 14, 2014

From @masak

<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. :-)

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented Dec 3, 2017

From @AlexDaniel

Still NYI (2017.11,HEAD(e5b660e))

On 2014-10-14 01​:02​:45, masak wrote​:

<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. :-)

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented Dec 3, 2017

The RT System itself - Status changed from 'new' to 'open'

@p6rt p6rt added the NYI label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.