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
BUG: should match: grammar A { rule TOP { ^ } }; say A.parse(' ') #2640
Comments
From @cognominal
The relevant spec is probably S05:355 When you write rule TOP { ^ <stuff> $ } this is the same as token TOP { ^ <.ws> <stuff> <.ws> $ <.ws> } discussed with jonathan at http://irclog.perlgeek.de/perl6/2012-02-05#i_5106223 A test should probably added spec/S05-grammar/ws.t : grammar A { rule TOP { ^ } }; -- |
From sirrobert@gmail.comBug report. The snippet below (and associated github gist) says it all. -Sir 20:07 < sirrobert> I'm learning to write grammars, but having a wierd |
From @masak<masak> r: grammar G { token TOP { ^<foo>$ }; rule foo { foo } }; say ? |
The RT System itself - Status changed from 'new' to 'open' |
From @MouqOn Sun Jul 28 10:05:00 2013, masak wrote:
This significant whitespace has worked correctly for about half a year now in Rakudo. Additionally: $ perl6 -e'grammar G { token TOP { ^<foo>$ }; rule foo { foo } }; say ?G.parse(" foo")' These are the correct semantics. Marking this as resolved |
@Mouq - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#109874 (status was 'resolved')
Searchable as RT109874$
The text was updated successfully, but these errors were encountered: