On Sun Jul 28 10:05:00 2013, masak wrote:
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
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
# New Ticket Created by Stephane Payrard
# Please include the string: [perl #109874]
# in the subject line of all future correspondence about this issue.
# URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=109874
grammar A { rule TOP { ^ } }; say A.parse(' ')
#failed match
The