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
Grammar parse failure should probably return Nil not Any #4727
Comments
From @ronaldxsAccording to the docs: 18:07 mr_ron m: grammar G { token TOP { a+ } }; my Nil $x = G.parse("zz") 17:56 mr_ron m: grammar G { token TOP { a+ | <bs> }; token bs { b+ } }; say G.parse("zz").WHAT; say G.parse("aa")<bs>.WHAT |
From @ronaldxsAccording to the docs: 18:07 mr_ron m: grammar G { token TOP { a+ } }; my Nil $x = G.parse("zz") 17:56 mr_ron m: grammar G { token TOP { a+ | <bs> }; token bs { b+ } }; say G.parse("zz").WHAT; say G.parse("aa")<bs>.WHAT |
From @ronaldxsOn Tue, 03 Nov 2015 14:26:06 -0800, ronaldxs wrote:
Reran test cases and they now run as expected. Might be of interest to add test case(s?) to roast/S05-match/non-capturing.t? |
@ronaldxs - Status changed from 'new' to 'open' |
From @AlexDanielIs this ticket relevant today? Note that we also have this: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=131919
|
From @ronaldxsHopefully it's just a doc issue but: https://docs.perl6.org/routine/parse still says:
|
From @ronaldxsNoticed that RT #131919 is new and may apply to 6.d and would like to take a few days to review further. |
From @ronaldxsRequest for test cases now roast issue: Raku/roast#297 Planning to close this ticket soon if no objection. |
@ronaldxs - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#126558 (status was 'resolved')
Searchable as RT126558$
The text was updated successfully, but these errors were encountered: