Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created September 4, 2019 17:05
Show Gist options
  • Save Whateverable/3f0a53d1816a1897a904fb8f0dbb202f to your computer and use it in GitHub Desktop.
Save Whateverable/3f0a53d1816a1897a904fb8f0dbb202f to your computer and use it in GitHub Desktop.
evalable6
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
(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