Last active
January 7, 2017 13:46
-
-
Save ronaldxs/fa513b68640f68c60421c45616892919 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment