Open p6rt opened 8 years ago
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 \
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 $!;
@coke - Status changed from 'new' to 'open'
This bug is still present in Rakudo version 2016.09-21-g3ed51de built on MoarVM version 2016.09 implementing Perl 6.c.
Shorter test-case:
my token hexlet { \<[A..F]> };
say "A" ~~ /\
Possibly more complete test case:
my token hexlet { \<[A..F]> };
say "A" ~~ /\
Migrated from rt.perl.org#126252 (status was 'open')
Searchable as RT126252$