Created
February 13, 2023 13:05
-
-
Save ab5tract/a894cb156033b9f9167ebfb9b5d197ba to your computer and use it in GitHub Desktop.
Failing to parse 'enum'
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
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