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
whitespace before ^ in rule #1814
Comments
From rirans@comcast.netIn rule TOP { ^ <tok> } If I'm far from right, let me know so I Thank you for rakudo. Be well, |
From rirans@comcast.netuse Test; grammar A { grammar B { for @t -> $t { |
From @moritzOn Thu Jun 10 21:11:42 2010, rirans@comcast.net wrote:
It actually conforms the current spec. Each consecutive run of token TOP { <.ws> ^ <.ws> <tok> <.ws> } When there is leading whitespace in the string, the first <.ws> matches, I agree that that it's not obvious or intuitive, but rakudo should only Cheers, |
The RT System itself - Status changed from 'new' to 'open' |
@moritz - Status changed from 'open' to 'rejected' |
From rirans@comcast.netOn Fri, Jun 11, 2010 at 02:16:28PM -0700, Moritz Lenz via RT wrote:
Thanks for the reply, I'll be slower to submit bugs. I get your point. I think the spec may be open to other interpretations ^ and $ now always match the start/end of a string, How can even a zero-width atom ever match before the start of a string? I think whitespace before a leading/trailing ^/$ needs to be discounted. It is foul if the "formalization" of matching leads us to rule TOP { needing to be rule TOP { Either way, the spec needs to be clarified. Moritz, I appreciate the time you have taken with me. I'm more or less On Perlmonks, I have found your answers satisfying but was disappointed Be well, |
From not.com@gmail.com
A good thing about perlmonks is that your audience is likely to grow, |
From bruce@drangle.com
+1 |
Migrated from rt.perl.org#75668 (status was 'rejected')
Searchable as RT75668$
The text was updated successfully, but these errors were encountered: