Enum valkyrie_parser::ValkyrieRule
source · #[repr(u32)]pub enum ValkyrieRule {
Show 240 variants
Program = 0,
Statement = 1,
EOS = 2,
EOS_FREE = 3,
DefineNamespace = 4,
OP_NAMESPACE = 5,
DefineImport = 6,
ImportBlock = 7,
ImportTerm = 8,
ImportAll = 9,
ImportSpace = 10,
ImportName = 11,
ImportAs = 12,
ImportNameItem = 13,
DefineConstraint = 14,
ConstraintParameters = 15,
ConstraintBlock = 16,
ConstraintStatement = 17,
ConstraintImplements = 18,
WhereBlock = 19,
WhereBound = 20,
DefineClass = 21,
ClassBlock = 22,
ClassTerm = 23,
KW_CLASS = 24,
DefineField = 25,
ParameterDefault = 26,
DefineMethod = 27,
DefineDomain = 28,
DomainTerm = 29,
DefineInherit = 30,
InheritTerm = 31,
ObjectStatement = 32,
DefineEnumerate = 33,
FlagTerm = 34,
FlagField = 35,
KW_FLAGS = 36,
DefineUnion = 37,
UnionTerm = 38,
DefineVariant = 39,
KW_UNION = 40,
DefineTrait = 41,
DefineExtends = 42,
TraitBlock = 43,
TraitTerm = 44,
KW_TRAIT = 45,
DefineFunction = 46,
DefineLambda = 47,
FunctionMiddle = 48,
TypeHint = 49,
TypeReturn = 50,
TypeEffect = 51,
FunctionParameters = 52,
ParameterItem = 53,
ParameterPair = 54,
ParameterHint = 55,
Continuation = 56,
KW_FUNCTION = 57,
DefineVariable = 58,
LetPattern = 59,
StandardPattern = 60,
BarePattern = 61,
BarePatternItem = 62,
TuplePattern = 63,
PatternItem = 64,
TuplePatternItem = 65,
WhileStatement = 66,
KW_WHILE = 67,
ForStatement = 68,
IfGuard = 69,
ControlFlow = 70,
JumpLabel = 71,
ExpressionRoot = 72,
MatchExpression = 73,
SwitchStatement = 74,
MatchBlock = 75,
MatchTerms = 76,
MatchType = 77,
MatchCase = 78,
CasePattern = 79,
MatchWhen = 80,
MatchElse = 81,
MatchStatement = 82,
KW_MATCH = 83,
BIND_L = 84,
BIND_R = 85,
DotMatchCall = 86,
MainExpression = 87,
MainTerm = 88,
MainFactor = 89,
GroupFactor = 90,
Leading = 91,
MainSuffixTerm = 92,
MainPrefix = 93,
TypePrefix = 94,
MainInfix = 95,
TypeInfix = 96,
MainSuffix = 97,
TypeSuffix = 98,
InlineExpression = 99,
InlineTerm = 100,
InlineSuffixTerm = 101,
TypeExpression = 102,
TypeTerm = 103,
TypeFactor = 104,
TypeSuffixTerm = 105,
TryStatement = 106,
NewStatement = 107,
NewBlock = 108,
NewPair = 109,
NewPairKey = 110,
DotCall = 111,
DotCallItem = 112,
DotClosureCall = 113,
InlineTupleCall = 114,
TupleCall = 115,
TupleLiteral = 116,
TupleLiteralStrict = 117,
TupleTerms = 118,
TuplePair = 119,
TupleKey = 120,
RangeCall = 121,
RangeLiteral = 122,
RangeLiteralIndex0 = 123,
RangeLiteralIndex1 = 124,
SubscriptAxis = 125,
SubscriptOnly = 126,
SubscriptRange = 127,
RangeOmit = 128,
DefineGeneric = 129,
GenericParameter = 130,
GenericParameterPair = 131,
GenericCall = 132,
GenericHide = 133,
GenericTerms = 134,
GenericPair = 135,
AnnotationHead = 136,
AnnotationMix = 137,
AnnotationTerm = 138,
AnnotationTermMix = 139,
AttributeList = 140,
AttributeCall = 141,
AttributeItem = 142,
AttributeName = 143,
ProceduralCall = 144,
ProceduralName = 145,
TextLiteral = 146,
TextRaw = 147,
Text_L = 148,
Text_R = 149,
Text_X = 150,
TEXT_CONTENT1 = 151,
TEXT_CONTENT2 = 152,
TEXT_CONTENT3 = 153,
TEXT_CONTENT4 = 154,
TEXT_CONTENT5 = 155,
TEXT_CONTENT6 = 156,
ModifierCall = 157,
ModifierAhead = 158,
KEYWORDS_STOP = 159,
IDENTIFIER_STOP = 160,
Slot = 161,
SlotItem = 162,
NamepathFree = 163,
Namepath = 164,
Identifier = 165,
IdentifierBare = 166,
IdentifierRaw = 167,
IdentifierRawText = 168,
Special = 169,
Number = 170,
Sign = 171,
Integer = 172,
DigitsX = 173,
Decimal = 174,
DecimalX = 175,
PROPORTION = 176,
NS_CONCAT = 177,
COLON = 178,
ARROW1 = 179,
COMMA = 180,
DOT = 181,
OP_SLOT = 182,
OFFSET_L = 183,
OFFSET_R = 184,
PROPORTION2 = 185,
OP_IMPORT_ALL = 186,
OP_AND_THEN = 187,
OP_BIND = 188,
KW_CONTROL = 189,
KW_NAMESPACE = 190,
KW_IMPORT = 191,
KW_CONSTRAINT = 192,
KW_WHERE = 193,
KW_IMPLEMENTS = 194,
KW_EXTENDS = 195,
KW_INHERITS = 196,
KW_FOR = 197,
KW_END = 198,
KW_LET = 199,
KW_NEW = 200,
KW_OBJECT = 201,
KW_LAMBDA = 202,
KW_IF = 203,
KW_SWITCH = 204,
KW_TRY = 205,
KW_TYPE = 206,
KW_CASE = 207,
KW_WHEN = 208,
KW_ELSE = 209,
KW_NOT = 210,
KW_IN = 211,
KW_IS = 212,
KW_AS = 213,
Shebang = 214,
WhiteSpace = 215,
SkipSpace = 216,
Comment = 217,
StringInterpolations = 218,
StringInterpolationTerm = 219,
EscapeCharacter = 220,
EscapeUnicode = 221,
EscapeUnicodeCode = 222,
StringInterpolationSimple = 223,
StringInterpolationText = 224,
StringFormatter = 225,
StringInterpolationComplex = 226,
StringTemplates = 227,
StringTemplateTerm = 228,
ExpressionTemplate = 229,
ForTemplate = 230,
ForTemplateBegin = 231,
ForTemplateElse = 232,
ForTemplateEnd = 233,
TEMPLATE_S = 234,
TEMPLATE_E = 235,
TEMPLATE_L = 236,
TEMPLATE_R = 237,
TEMPLATE_M = 238,
HiddenText = 239,
}Variants§
Program = 0
Statement = 1
EOS = 2
EOS_FREE = 3
DefineNamespace = 4
OP_NAMESPACE = 5
DefineImport = 6
ImportBlock = 7
ImportTerm = 8
ImportAll = 9
ImportSpace = 10
ImportName = 11
ImportAs = 12
ImportNameItem = 13
DefineConstraint = 14
ConstraintParameters = 15
ConstraintBlock = 16
ConstraintStatement = 17
ConstraintImplements = 18
WhereBlock = 19
WhereBound = 20
DefineClass = 21
ClassBlock = 22
ClassTerm = 23
KW_CLASS = 24
DefineField = 25
ParameterDefault = 26
DefineMethod = 27
DefineDomain = 28
DomainTerm = 29
DefineInherit = 30
InheritTerm = 31
ObjectStatement = 32
DefineEnumerate = 33
FlagTerm = 34
FlagField = 35
KW_FLAGS = 36
DefineUnion = 37
UnionTerm = 38
DefineVariant = 39
KW_UNION = 40
DefineTrait = 41
DefineExtends = 42
TraitBlock = 43
TraitTerm = 44
KW_TRAIT = 45
DefineFunction = 46
DefineLambda = 47
FunctionMiddle = 48
TypeHint = 49
TypeReturn = 50
TypeEffect = 51
FunctionParameters = 52
ParameterItem = 53
ParameterPair = 54
ParameterHint = 55
Continuation = 56
KW_FUNCTION = 57
DefineVariable = 58
LetPattern = 59
StandardPattern = 60
BarePattern = 61
BarePatternItem = 62
TuplePattern = 63
PatternItem = 64
TuplePatternItem = 65
WhileStatement = 66
KW_WHILE = 67
ForStatement = 68
IfGuard = 69
ControlFlow = 70
JumpLabel = 71
ExpressionRoot = 72
MatchExpression = 73
SwitchStatement = 74
MatchBlock = 75
MatchTerms = 76
MatchType = 77
MatchCase = 78
CasePattern = 79
MatchWhen = 80
MatchElse = 81
MatchStatement = 82
KW_MATCH = 83
BIND_L = 84
BIND_R = 85
DotMatchCall = 86
MainExpression = 87
MainTerm = 88
MainFactor = 89
GroupFactor = 90
Leading = 91
MainSuffixTerm = 92
MainPrefix = 93
TypePrefix = 94
MainInfix = 95
TypeInfix = 96
MainSuffix = 97
TypeSuffix = 98
InlineExpression = 99
InlineTerm = 100
InlineSuffixTerm = 101
TypeExpression = 102
TypeTerm = 103
TypeFactor = 104
TypeSuffixTerm = 105
TryStatement = 106
NewStatement = 107
NewBlock = 108
NewPair = 109
NewPairKey = 110
DotCall = 111
DotCallItem = 112
DotClosureCall = 113
InlineTupleCall = 114
TupleCall = 115
TupleLiteral = 116
TupleLiteralStrict = 117
TupleTerms = 118
TuplePair = 119
TupleKey = 120
RangeCall = 121
RangeLiteral = 122
RangeLiteralIndex0 = 123
RangeLiteralIndex1 = 124
SubscriptAxis = 125
SubscriptOnly = 126
SubscriptRange = 127
RangeOmit = 128
DefineGeneric = 129
GenericParameter = 130
GenericParameterPair = 131
GenericCall = 132
GenericHide = 133
GenericTerms = 134
GenericPair = 135
AnnotationHead = 136
AnnotationMix = 137
AnnotationTerm = 138
AnnotationTermMix = 139
AttributeList = 140
AttributeCall = 141
AttributeItem = 142
AttributeName = 143
ProceduralCall = 144
ProceduralName = 145
TextLiteral = 146
TextRaw = 147
Text_L = 148
Text_R = 149
Text_X = 150
TEXT_CONTENT1 = 151
TEXT_CONTENT2 = 152
TEXT_CONTENT3 = 153
TEXT_CONTENT4 = 154
TEXT_CONTENT5 = 155
TEXT_CONTENT6 = 156
ModifierCall = 157
ModifierAhead = 158
KEYWORDS_STOP = 159
IDENTIFIER_STOP = 160
Slot = 161
SlotItem = 162
NamepathFree = 163
Namepath = 164
Identifier = 165
IdentifierBare = 166
IdentifierRaw = 167
IdentifierRawText = 168
Special = 169
Number = 170
Sign = 171
Integer = 172
DigitsX = 173
Decimal = 174
DecimalX = 175
PROPORTION = 176
NS_CONCAT = 177
COLON = 178
ARROW1 = 179
COMMA = 180
DOT = 181
OP_SLOT = 182
OFFSET_L = 183
OFFSET_R = 184
PROPORTION2 = 185
OP_IMPORT_ALL = 186
OP_AND_THEN = 187
OP_BIND = 188
KW_CONTROL = 189
KW_NAMESPACE = 190
KW_IMPORT = 191
KW_CONSTRAINT = 192
KW_WHERE = 193
KW_IMPLEMENTS = 194
KW_EXTENDS = 195
KW_INHERITS = 196
KW_FOR = 197
KW_END = 198
KW_LET = 199
KW_NEW = 200
KW_OBJECT = 201
KW_LAMBDA = 202
KW_IF = 203
KW_SWITCH = 204
KW_TRY = 205
KW_TYPE = 206
KW_CASE = 207
KW_WHEN = 208
KW_ELSE = 209
KW_NOT = 210
KW_IN = 211
KW_IS = 212
KW_AS = 213
Shebang = 214
WhiteSpace = 215
SkipSpace = 216
Comment = 217
StringInterpolations = 218
StringInterpolationTerm = 219
EscapeCharacter = 220
EscapeUnicode = 221
EscapeUnicodeCode = 222
StringInterpolationSimple = 223
StringInterpolationText = 224
StringFormatter = 225
StringInterpolationComplex = 226
StringTemplates = 227
StringTemplateTerm = 228
ExpressionTemplate = 229
ForTemplate = 230
ForTemplateBegin = 231
ForTemplateElse = 232
ForTemplateEnd = 233
TEMPLATE_S = 234
TEMPLATE_E = 235
TEMPLATE_L = 236
TEMPLATE_R = 237
TEMPLATE_M = 238
HiddenText = 239
Label for unnamed text literal
Trait Implementations§
source§impl Clone for ValkyrieRule
impl Clone for ValkyrieRule
source§fn clone(&self) -> ValkyrieRule
fn clone(&self) -> ValkyrieRule
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ValkyrieRule
impl Debug for ValkyrieRule
source§impl Hash for ValkyrieRule
impl Hash for ValkyrieRule
source§impl Ord for ValkyrieRule
impl Ord for ValkyrieRule
source§fn cmp(&self, other: &ValkyrieRule) -> Ordering
fn cmp(&self, other: &ValkyrieRule) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ValkyrieRule
impl PartialEq for ValkyrieRule
source§fn eq(&self, other: &ValkyrieRule) -> bool
fn eq(&self, other: &ValkyrieRule) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ValkyrieRule
impl PartialOrd for ValkyrieRule
source§fn partial_cmp(&self, other: &ValkyrieRule) -> Option<Ordering>
fn partial_cmp(&self, other: &ValkyrieRule) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl YggdrasilRule for ValkyrieRule
impl YggdrasilRule for ValkyrieRule
impl Copy for ValkyrieRule
impl Eq for ValkyrieRule
impl StructuralPartialEq for ValkyrieRule
Auto Trait Implementations§
impl RefUnwindSafe for ValkyrieRule
impl Send for ValkyrieRule
impl Sync for ValkyrieRule
impl Unpin for ValkyrieRule
impl UnwindSafe for ValkyrieRule
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more