# New Ticket Created by Ron Schmidt # Please include the string: [perl #126252] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=126252 >
The last two cases below fail and they should not. The problem was discussed on IRC here: http://irclog.perlgeek.de/perl6/2015-10-02#i_11309820 . The error in both cases on my system reads: Method 'hexlet' not found for invocant of class 'Cursor' in block <unit> at unreserved.pl6:11 my token hexlet { <[A..F]> } grammar G { token TOP { <- hexlet> } token hexlet { <[A..F]> } } say so G.parse('.'); say so G.parse('A'); say so '.' ~~ /<- alpha>/; try { say so '.' ~~ /<- hexlet>/ } say $!; try { say so '.' ~~ /<[Q..Z] + hexlet>/ } say $!;
