Created
September 4, 2019 17:05
-
-
Save Whateverable/3f0a53d1816a1897a904fb8f0dbb202f to your computer and use it in GitHub Desktop.
evalable6
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
my token d { <[0..9 x]> }; my token L { 'L' }; my rule enum_entry { /( <[_ A..Z]>+ ) ( [ '=' <m>?<d>+<L>? [ '<<' (<d>+) ]? ]? ) ','? \v*/ }; ("MY_INSANE_ENUM => 2 << 33" ~~ /<enum_entry>/).gist.say |
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
(exit code 1) | |
===SORRY!=== | |
Unrecognized regex metacharacter / (must be quoted to match literally) | |
at /tmp/4ed65ZHBlC:1 | |
------> my token L { 'L' }; my rule enum_entry {⏏ /( <[_ A..Z]>+ ) ( [ '=' <m>?<d>+<L>? [ | |
Unrecognized regex metacharacter ( (must be quoted to match literally) | |
at /tmp/4ed65ZHBlC:1 | |
------> token L { 'L' }; my rule enum_entry { /⏏( <[_ A..Z]>+ ) ( [ '=' <m>?<d>+<L>? [ ' | |
Malformed regex | |
at /tmp/4ed65ZHBlC:1 | |
------> oken L { 'L' }; my rule enum_entry { /( ⏏<[_ A..Z]>+ ) ( [ '=' <m>?<d>+<L>? [ '<< | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment