Since the sort is stable, I believe it suffices simply to sort on the .to
instead of the .from.
Larry
On Thu, Jun 11, 2015 at 02:53:15PM -0700, Alex Jakimenko wrote:
> say grammar Gram { regex TOP { ('XX')+ %% $=<[a..z]>* };
> }.parse('XX');
>
> Output:
> 「XX」
> 0 => 「XX」
> 0 => 「XX」
> delim => 「」
> 0 => 「XX」
> delim => 「」
> delim => 「」
>
> The order is wrong.
I'm not entirely cer
# New Ticket Created by Alex Jakimenko
# Please include the string: [perl #125391]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=125391 >
Code:
say grammar Gram { regex TOP { ('XX')+ %% $=<[a..z]>* };
}.parse('XX');
Outp