Skip to content

Instantly share code, notes, and snippets.

@ab5tract
Created February 13, 2023 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ab5tract/a894cb156033b9f9167ebfb9b5d197ba to your computer and use it in GitHub Desktop.
Save ab5tract/a894cb156033b9f9167ebfb9b5d197ba to your computer and use it in GitHub Desktop.
Failing to parse 'enum'
token type_declarator:sym<enum> {
# <sym><.kok>
:my $*IN_DECL := 'enum';
# [
# | <longname>
# | <variable>
# | <?>
# ]
{ $*IN_DECL := '' }
# <.ws>
#
# <trait>*
#
# [ <?[<(«]> <term> <.ws> || <.panic: 'An enum must supply an expression using <>, «», or ()'> ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment