Skip Menu |
Report information
Id: 130527
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: ronaldxs <ronaldxs [at] software-path.com>
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [BUG] Override of internal character class in grammar won't combine with other character classes
To: rakudobug [...] perl.org
Date: Sat, 07 Jan 2017 15:21:46 +0100
From: Ronald Schmidt <ronaldxs [...] software-path.com>
Download (untitled) / with headers
text/plain 553b

Override of internal character class in gramma won't combine with other character classes:

grammar g{
    token alpha {<[2]>};
    token alpha1 {<[2]>};      # same as alpha but without internal car class conflict
    token beta { <[q]> };
    token delta {<+alpha +beta>};
    token delta1 {<+alpha>};
    token delta2 {<+alpha1 +beta>}
}
say so "2" ~~ /<g::delta1>/;   # OK
say so "2" ~~ /<g::delta2>/;   # OK
say so "2" ~~ /<g::delta>/;    # think wrong - should be true
say so "a" ~~ /<g::delta>/;    # true probably wrong but maybe understandable

 


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org