On Wed, Jun 3, 2009 at 8:08 AM, Håkon Skaarud Karlsen
perl6-bugs-follo...@perl.org wrote:
# New Ticket Created by Håkon Skaarud Karlsen
# Please include the string: [perl #66250]
# in the subject line of all future correspondence about this issue.
# URL:
# New Ticket Created by Håkon Skaarud Karlsen
# Please include the string: [perl #66250]
# in the subject line of all future correspondence about this issue.
# URL: http://rt.perl.org/rt3/Ticket/Display.html?id=66250
This works:
grammar A { rule TOP { 'a ' 'b' {*} } }; my $m = A.parse('a
On Wed Jun 03 06:08:46 2009, haakonsk wrote:
This doesn't work:
grammar A { rule TOP { 'a' ' b' {*} } }; my $m = A.parse('a b'); say $/;
Result: Empty string
Expected result: a b
Rakudo is correct here.
Whitespace in rules is metasyntactic -- it gets replaced by .ws.
So, the above rule is