[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. # URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=119053 masak r: grammar G { rule TOP { ^ foo }; rule foo { foo } }; say ?G.parse(

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

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