[perl #119053] [BUG] a rule doesn't match whitespace after a '^' anchor with whitespace after it in Rakudo

2013-07-28 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #119053] # in the subject line of all future correspondence about this issue. # https://rt.perl.org:443/rt3/Ticket/Display.html?id=119053 > r: grammar G { rule TOP { ^ }; rule foo { foo } }; say ?G.parse(" foo") rakudo

[perl #109874] BUG: should match: grammar A { rule TOP { ^ } }; say A.parse(' ')

2013-07-28 Thread Carl Mäsak via RT
r: grammar G { token TOP { ^$ }; rule foo { foo } }; say ? G.parse(" foo") rakudo 96776b: OUTPUT«True␤» r: grammar G { token TOP { ^$ }; rule foo {foo } }; say ? G.parse(" foo") rakudo 96776b: OUTPUT«False␤» I thought rules ignored initial whitespace... masak: it's fascinating how rakudo stil