Thanks for that. I've added a couple of tests to roast/S05-capture/caps.t.
https://github.com/perl6/roast/commit/bc4c9a5ec803a2a19087a922798df6f8f8e653c9
Hope these help.
On Sat, May 4, 2013 at 7:45 AM, Patrick R. Michaud via RT <
perl6-bugs-follo...@perl.org> wrote:
> Now fixed in 4741028:
>
Now fixed in 4741028:
pmichaud@kiwi:~/p6/rakudo$ cat g.pl
grammar G {
token TOP { +% }
token letter{<[a..z]>}
token sep{\,}
}
say G.parse("a,b,c,d").caps.map({$_.value});
pmichaud@kiwi:~/p6/rakudo$ ./perl6 g.pl
a , b , c , d
pmichaud@ki
It's inconsistent with the %% separator. This also also lets me catch
variable operators. e.g.
grammar G {
token TOP { +%% }
token letter{<[a..z]>}
token sep{\,|\;}
}
say G.parse("a;b,c,d");
「a;b,c,d」
letter => 「a」
sep => 「;」
letter => 「b」
sep => 「,」
letter => 「c」
# New Ticket Created by David Warring
# Please include the string: [perl #117831]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org:443/rt3/Ticket/Display.html?id=117831 >
$ perl6 --version
This is perl6 version 2013.04-22-gd2af402 built on parr