Forked from ronaldxs/char-class-override-bug.p6
Created
January 7, 2017 13:39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grammar g{ | |
token garble {<[2]>}; | |
token alpha1 {<[2]>}; | |
token beta { <[q]> }; | |
token delta {<+garble +beta>}; | |
token delta1 {<+garble>}; | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment