develooper Front page | perl.perl6.compiler | Postings from May 2008

[perl #53804] test/grammar conflict

Thread Next
From:
Stephen Weeks
Date:
May 7, 2008 03:13
Subject:
[perl #53804] test/grammar conflict
# New Ticket Created by  Stephen Weeks 
# Please include the string:  [perl #53804]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=53804 >


Both rakudo's grammar and STD.pm have this line in token methodop:

    | ':' <?before \s> <!{ $+inquote }> <EXPR(%list_prefix)>

t/spec/S29-list/minmax.t has the following parse failure in a few places, though:

    is @array.min:{ $^a <=> $^b }, -9,

This doesn't parse because there's no whitespace after the :

Is the test wrong?  Should I update the test to match the grammar or the
grammar to match the test?

Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About