Re: [perl #66250] Trouble with white space in Rakudo grammars

2009-06-05 Thread Jonathan Scott Duff
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:

[perl #66250] Trouble with white space in Rakudo grammars

2009-06-04 Thread via RT
# 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

[perl #66250] Trouble with white space in Rakudo grammars

2009-06-04 Thread Patrick R. Michaud via RT
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