#[repr(u16)]pub enum SyntaxKind {
Show 306 variants
Eof = 0,
WhiteSpace = 1,
Comment = 2,
Add = 3,
AdditiveExpression = 4,
Aggregate = 5,
ArgList = 6,
AskQuery = 7,
BaseDecl = 8,
Bind = 9,
BlankNode = 10,
BlankNodePropertyList = 11,
BlankNodePropertyListPath = 12,
BooleanLiteral = 13,
BrackettedExpression = 14,
BuiltInCall = 15,
Clear = 16,
Collection = 17,
CollectionPath = 18,
ConditionalAndExpression = 19,
ConditionalOrExpression = 20,
Constraint = 21,
ConstructQuery = 22,
ConstructTemplate = 23,
ConstructTriples = 24,
Copy = 25,
Create = 26,
DataBlock = 27,
DataBlockValue = 28,
DatasetClause = 29,
DefaultGraphClause = 30,
DeleteClause = 31,
DeleteData = 32,
DeleteWhere = 33,
DescribeQuery = 34,
Drop = 35,
ExistsFunc = 36,
Expression = 37,
ExpressionList = 38,
Filter = 39,
FunctionCall = 40,
GraphGraphPattern = 41,
GraphNode = 42,
GraphNodePath = 43,
GraphOrDefault = 44,
GraphPatternNotTriples = 45,
GraphRef = 46,
GraphRefAll = 47,
GraphTerm = 48,
GroupClause = 49,
GroupCondition = 50,
GroupGraphPattern = 51,
GroupGraphPatternSub = 52,
GroupOrUnionGraphPattern = 53,
HavingClause = 54,
HavingCondition = 55,
InlineData = 56,
InlineDataFull = 57,
InlineDataOneVar = 58,
InsertClause = 59,
InsertData = 60,
LimitClause = 61,
LimitOffsetClauses = 62,
Load = 63,
MinusGraphPattern = 64,
Modify = 65,
Move = 66,
MultiplicativeExpression = 67,
NamedGraphClause = 68,
NotExistsFunc = 69,
NumericExpression = 70,
NumericLiteral = 71,
NumericLiteralNegative = 72,
NumericLiteralPositive = 73,
NumericLiteralUnsigned = 74,
Object = 75,
ObjectList = 76,
ObjectListPath = 77,
ObjectPath = 78,
OffsetClause = 79,
OptionalGraphPattern = 80,
OrderClause = 81,
OrderCondition = 82,
Path = 83,
PathAlternative = 84,
PathElt = 85,
PathEltOrInverse = 86,
PathMod = 87,
PathNegatedPropertySet = 88,
PathOneInPropertySet = 89,
PathPrimary = 90,
PathSequence = 91,
PrefixDecl = 92,
PrefixedName = 93,
PrimaryExpression = 94,
Prologue = 95,
PropertyList = 96,
PropertyListNotEmpty = 97,
PropertyListPath = 98,
PropertyListPathNotEmpty = 99,
QuadData = 100,
QuadPattern = 101,
Quads = 102,
QuadsNotTriples = 103,
Query = 104,
QueryUnit = 105,
Rdfliteral = 106,
RegexExpression = 107,
RelationalExpression = 108,
SelectClause = 109,
SelectQuery = 110,
ServiceGraphPattern = 111,
SolutionModifier = 112,
SourceSelector = 113,
StrReplaceExpression = 114,
MyString = 115,
SubSelect = 116,
Subject1 = 117,
Subject2 = 118,
SubstringExpression = 119,
TriplesBlock = 120,
TriplesNode = 121,
TriplesNodePath = 122,
TriplesSameSubject = 123,
TriplesSameSubjectPath = 124,
TriplesTemplate = 125,
UnaryExpression = 126,
Update = 127,
Update1 = 128,
UpdateUnit = 129,
UsingClause = 130,
ValueLogical = 131,
ValuesClause = 132,
Var = 133,
VarOrIri = 134,
VarOrTerm = 135,
Verb = 136,
VerbPath = 137,
VerbSimple = 138,
WhereClause = 139,
Iri = 140,
IriOrFunction = 141,
Bang = 142,
Neq = 143,
Amp2 = 144,
BrOpen = 145,
BrClose = 146,
Star = 147,
Plus = 148,
Comma = 149,
Bar = 150,
Stop = 151,
Div = 152,
Colon = 153,
Lt = 154,
Lte = 155,
Eq = 156,
Gt = 157,
Gte = 158,
Questionmark = 159,
AbsLit = 160,
AddLit = 161,
AllLit = 162,
AsLit = 163,
AscLit = 164,
AskLit = 165,
AvgLit = 166,
SparqlBaseToken = 167,
BindLit = 168,
BnodeLit = 169,
BoundLit = 170,
ByLit = 171,
CeilLit = 172,
ClearLit = 173,
CoalesceLit = 174,
ConcatLit = 175,
ConstructLit = 176,
ContainsLit = 177,
CopyLit = 178,
CountLit = 179,
CreateLit = 180,
DatatypeLit = 181,
DayLit = 182,
DefaultLit = 183,
DeleteLit = 184,
DeleteDataLit = 185,
DeleteWhereLit = 186,
DescLit = 187,
DescribeLit = 188,
DistinctLit = 189,
DropLit = 190,
EncodeForUriLit = 191,
ExistsLit = 192,
FilterLit = 193,
FloorLit = 194,
FromLit = 195,
GraphLit = 196,
GroupLit = 197,
GroupConcatLit = 198,
HavingLit = 199,
HoursLit = 200,
IfLit = 201,
InLit = 202,
InsertLit = 203,
InsertDataLit = 204,
IntoLit = 205,
IriLit = 206,
LangLit = 207,
LangmatchesLit = 208,
LcaseLit = 209,
LimitLit = 210,
LoadLit = 211,
MaxLit = 212,
Md5Lit = 213,
MinLit = 214,
MinusLit = 215,
MinutesLit = 216,
MonthLit = 217,
MoveLit = 218,
NamedLit = 219,
NotLit = 220,
NowLit = 221,
OffsetLit = 222,
OptionalLit = 223,
OrderLit = 224,
SparqlPrefixToken = 225,
RandLit = 226,
ReducedLit = 227,
RegexLit = 228,
ReplaceLit = 229,
RoundLit = 230,
SampleLit = 231,
SecondsLit = 232,
SelectLit = 233,
SeparatorLit = 234,
ServiceLit = 235,
Sha1Lit = 236,
Sha256Lit = 237,
Sha384Lit = 238,
Sha512Lit = 239,
SilentLit = 240,
StrLit = 241,
StrafterLit = 242,
StrbeforeLit = 243,
StrdtLit = 244,
StrendsLit = 245,
StrlangLit = 246,
StrlenLit = 247,
StrstartsLit = 248,
StruuidLit = 249,
SubstrLit = 250,
SumLit = 251,
TimezoneLit = 252,
ToLit = 253,
TzLit = 254,
UcaseLit = 255,
UndefLit = 256,
UnionLit = 257,
UriLit = 258,
UsingLit = 259,
UuidLit = 260,
ValuesLit = 261,
WhereLit = 262,
WithLit = 263,
YearLit = 264,
SqOpen = 265,
SqClose = 266,
Hat = 267,
Datatype = 268,
Alit = 269,
FalseLit = 270,
IsBlankLit = 271,
IsIriLit = 272,
IsLiteralLit = 273,
IsNumericLit = 274,
IsUriLit = 275,
SameTermLit = 276,
TrueLit = 277,
ClOpen = 278,
Pipe = 279,
Pipe2 = 280,
ClClose = 281,
Anon = 282,
BlankNodeLabel = 283,
Decimal = 284,
DecimalNegative = 285,
DecimalPositive = 286,
Double = 287,
DoubleNegative = 288,
DoublePositive = 289,
Integer = 290,
IntegerNegative = 291,
IntegerPositive = 292,
Iriref = 293,
Langtag = 294,
Nil = 295,
PnameLn = 296,
PnameNs = 297,
StringLiteral1 = 298,
StringLiteral2 = 299,
StringLiteralLong1 = 300,
StringLiteralLong2 = 301,
Var1 = 302,
Var2 = 303,
Error = 304,
ROOT = 305,
}Variants§
Eof = 0
WhiteSpace = 1
Comment = 2
Add = 3
producings
AdditiveExpression = 4
Aggregate = 5
ArgList = 6
AskQuery = 7
BaseDecl = 8
Bind = 9
BlankNode = 10
BlankNodePropertyList = 11
BlankNodePropertyListPath = 12
BooleanLiteral = 13
BrackettedExpression = 14
BuiltInCall = 15
Clear = 16
Collection = 17
CollectionPath = 18
ConditionalAndExpression = 19
ConditionalOrExpression = 20
Constraint = 21
ConstructQuery = 22
ConstructTemplate = 23
ConstructTriples = 24
Copy = 25
Create = 26
DataBlock = 27
DataBlockValue = 28
DatasetClause = 29
DefaultGraphClause = 30
DeleteClause = 31
DeleteData = 32
DeleteWhere = 33
DescribeQuery = 34
Drop = 35
ExistsFunc = 36
Expression = 37
ExpressionList = 38
Filter = 39
FunctionCall = 40
GraphGraphPattern = 41
GraphNode = 42
GraphNodePath = 43
GraphOrDefault = 44
GraphPatternNotTriples = 45
GraphRef = 46
GraphRefAll = 47
GraphTerm = 48
GroupClause = 49
GroupCondition = 50
GroupGraphPattern = 51
GroupGraphPatternSub = 52
GroupOrUnionGraphPattern = 53
HavingClause = 54
HavingCondition = 55
InlineData = 56
InlineDataFull = 57
InlineDataOneVar = 58
InsertClause = 59
InsertData = 60
LimitClause = 61
LimitOffsetClauses = 62
Load = 63
MinusGraphPattern = 64
Modify = 65
Move = 66
MultiplicativeExpression = 67
NamedGraphClause = 68
NotExistsFunc = 69
NumericExpression = 70
NumericLiteral = 71
NumericLiteralNegative = 72
NumericLiteralPositive = 73
NumericLiteralUnsigned = 74
Object = 75
ObjectList = 76
ObjectListPath = 77
ObjectPath = 78
OffsetClause = 79
OptionalGraphPattern = 80
OrderClause = 81
OrderCondition = 82
Path = 83
PathAlternative = 84
PathElt = 85
PathEltOrInverse = 86
PathMod = 87
PathNegatedPropertySet = 88
PathOneInPropertySet = 89
PathPrimary = 90
PathSequence = 91
PrefixDecl = 92
PrefixedName = 93
PrimaryExpression = 94
Prologue = 95
PropertyList = 96
PropertyListNotEmpty = 97
PropertyListPath = 98
PropertyListPathNotEmpty = 99
QuadData = 100
QuadPattern = 101
Quads = 102
QuadsNotTriples = 103
Query = 104
QueryUnit = 105
Rdfliteral = 106
RegexExpression = 107
RelationalExpression = 108
SelectClause = 109
SelectQuery = 110
ServiceGraphPattern = 111
SolutionModifier = 112
SourceSelector = 113
StrReplaceExpression = 114
MyString = 115
SubSelect = 116
Subject1 = 117
Subject2 = 118
SubstringExpression = 119
TriplesBlock = 120
TriplesNode = 121
TriplesNodePath = 122
TriplesSameSubject = 123
TriplesSameSubjectPath = 124
TriplesTemplate = 125
UnaryExpression = 126
Update = 127
Update1 = 128
UpdateUnit = 129
UsingClause = 130
ValueLogical = 131
ValuesClause = 132
Var = 133
VarOrIri = 134
VarOrTerm = 135
Verb = 136
VerbPath = 137
VerbSimple = 138
WhereClause = 139
Iri = 140
IriOrFunction = 141
Bang = 142
terminals
Neq = 143
Amp2 = 144
BrOpen = 145
BrClose = 146
Star = 147
Plus = 148
Comma = 149
Bar = 150
Stop = 151
Div = 152
Colon = 153
Lt = 154
Lte = 155
Eq = 156
Gt = 157
Gte = 158
Questionmark = 159
AbsLit = 160
AddLit = 161
AllLit = 162
AsLit = 163
AscLit = 164
AskLit = 165
AvgLit = 166
SparqlBaseToken = 167
BindLit = 168
BnodeLit = 169
BoundLit = 170
ByLit = 171
CeilLit = 172
ClearLit = 173
CoalesceLit = 174
ConcatLit = 175
ConstructLit = 176
ContainsLit = 177
CopyLit = 178
CountLit = 179
CreateLit = 180
DatatypeLit = 181
DayLit = 182
DefaultLit = 183
DeleteLit = 184
DeleteDataLit = 185
DeleteWhereLit = 186
DescLit = 187
DescribeLit = 188
DistinctLit = 189
DropLit = 190
EncodeForUriLit = 191
ExistsLit = 192
FilterLit = 193
FloorLit = 194
FromLit = 195
GraphLit = 196
GroupLit = 197
GroupConcatLit = 198
HavingLit = 199
HoursLit = 200
IfLit = 201
InLit = 202
InsertLit = 203
InsertDataLit = 204
IntoLit = 205
IriLit = 206
LangLit = 207
LangmatchesLit = 208
LcaseLit = 209
LimitLit = 210
LoadLit = 211
MaxLit = 212
Md5Lit = 213
MinLit = 214
MinusLit = 215
MinutesLit = 216
MonthLit = 217
MoveLit = 218
NamedLit = 219
NotLit = 220
NowLit = 221
OffsetLit = 222
OptionalLit = 223
OrderLit = 224
SparqlPrefixToken = 225
RandLit = 226
ReducedLit = 227
RegexLit = 228
ReplaceLit = 229
RoundLit = 230
SampleLit = 231
SecondsLit = 232
SelectLit = 233
SeparatorLit = 234
ServiceLit = 235
Sha1Lit = 236
Sha256Lit = 237
Sha384Lit = 238
Sha512Lit = 239
SilentLit = 240
StrLit = 241
StrafterLit = 242
StrbeforeLit = 243
StrdtLit = 244
StrendsLit = 245
StrlangLit = 246
StrlenLit = 247
StrstartsLit = 248
StruuidLit = 249
SubstrLit = 250
SumLit = 251
TimezoneLit = 252
ToLit = 253
TzLit = 254
UcaseLit = 255
UndefLit = 256
UnionLit = 257
UriLit = 258
UsingLit = 259
UuidLit = 260
ValuesLit = 261
WhereLit = 262
WithLit = 263
YearLit = 264
SqOpen = 265
SqClose = 266
Hat = 267
Datatype = 268
Alit = 269
FalseLit = 270
IsBlankLit = 271
IsIriLit = 272
IsLiteralLit = 273
IsNumericLit = 274
IsUriLit = 275
SameTermLit = 276
TrueLit = 277
ClOpen = 278
Pipe = 279
Pipe2 = 280
ClClose = 281
Anon = 282
BlankNodeLabel = 283
Decimal = 284
DecimalNegative = 285
DecimalPositive = 286
Double = 287
DoubleNegative = 288
DoublePositive = 289
Integer = 290
IntegerNegative = 291
IntegerPositive = 292
Iriref = 293
Langtag = 294
Nil = 295
PnameLn = 296
PnameNs = 297
StringLiteral1 = 298
StringLiteral2 = 299
StringLiteralLong1 = 300
StringLiteralLong2 = 301
Var1 = 302
Var2 = 303
Error = 304
ROOT = 305
Trait Implementations§
Source§impl Clone for SyntaxKind
impl Clone for SyntaxKind
Source§fn clone(&self) -> SyntaxKind
fn clone(&self) -> SyntaxKind
Returns a duplicate 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 SyntaxKind
impl Debug for SyntaxKind
Source§impl From<SyntaxKind> for SyntaxKind
impl From<SyntaxKind> for SyntaxKind
Source§fn from(kind: SyntaxKind) -> Self
fn from(kind: SyntaxKind) -> Self
Converts to this type from the input type.
Source§impl From<SyntaxKind> for SyntaxKind
impl From<SyntaxKind> for SyntaxKind
Source§fn from(value: SyntaxKind) -> Self
fn from(value: SyntaxKind) -> Self
Converts to this type from the input type.
Source§impl Hash for SyntaxKind
impl Hash for SyntaxKind
Source§impl<'s> Logos<'s> for SyntaxKind
impl<'s> Logos<'s> for SyntaxKind
Source§type Error = ()
type Error = ()
Error type returned by the lexer. This can be set using
#[logos(error = MyError)]. Defaults to () if not set.Source§type Extras = ()
type Extras = ()
Associated type
Extras for the particular lexer. This can be set using
#[logos(extras = MyExtras)] and accessed inside callbacks.Source§type Source = str
type Source = str
Source type this token can be lexed from. This will default to
str,
unless one of the defined patterns explicitly uses non-unicode byte values
or byte slices, in which case that implementation will use [u8].Source§fn lex(
lex: &mut Lexer<'s, Self>,
) -> Option<Result<Self, <Self as Logos<'s>>::Error>>
fn lex( lex: &mut Lexer<'s, Self>, ) -> Option<Result<Self, <Self as Logos<'s>>::Error>>
The heart of Logos. Called by the
Lexer. The implementation for this function
is generated by the logos-derive crate.Source§impl Ord for SyntaxKind
impl Ord for SyntaxKind
Source§fn cmp(&self, other: &SyntaxKind) -> Ordering
fn cmp(&self, other: &SyntaxKind) -> 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 SyntaxKind
impl PartialEq for SyntaxKind
Source§impl PartialOrd for SyntaxKind
impl PartialOrd for SyntaxKind
Source§impl TokenTrait for SyntaxKind
impl TokenTrait for SyntaxKind
const ERROR: Self = SyntaxKind::Error
const ROOT: Self = SyntaxKind::ROOT
fn branch(&self) -> u32
fn skips(&self) -> bool
fn starting_tokens(&self) -> &'static [SyntaxKind]
Source§fn min_error_for_token(&self, tok: &SyntaxKind) -> isize
fn min_error_for_token(&self, tok: &SyntaxKind) -> isize
Returns the minimum error cost this rule must incur when
tok is the
current token. Returns 0 if tok is reachable anywhere inside the
rule or the rule is nullable (can match zero tokens). Returns a
positive value otherwise — the rule cannot make progress without
producing at least that much error cost. Read morefn ending_tokens(&self) -> &'static [SyntaxKind]
Source§fn max_error_value(&self) -> isize
fn max_error_value(&self) -> isize
Maximum
error_value for this token kind across all grammar rules that
may match it. Read moreSource§fn bracket_delta(&self) -> i8
fn bracket_delta(&self) -> i8
Bracket nesting delta for this token kind. Read more
Source§fn min_completion_cost(&self) -> isize
fn min_completion_cost(&self) -> isize
Minimum cost to complete this rule via insertions. This is the sum of
error_values for all required terminals on the cheapest path through the
rule. Used by
add_element_checked to pre-charge elements that push
a rule the current token cannot start. Defaults to max_error_value().Source§fn deletion_cost(&self) -> isize
fn deletion_cost(&self) -> isize
Cost of deleting (skipping) this token during error recovery. Read more
impl Copy for SyntaxKind
impl Eq for SyntaxKind
impl StructuralPartialEq for SyntaxKind
Auto Trait Implementations§
impl Freeze for SyntaxKind
impl RefUnwindSafe for SyntaxKind
impl Send for SyntaxKind
impl Sync for SyntaxKind
impl Unpin for SyntaxKind
impl UnsafeUnpin for SyntaxKind
impl UnwindSafe for SyntaxKind
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