Enum SyntaxKind

Source
#[repr(u16)]
pub enum SyntaxKind {
Show 304 variants Eof = 0, Error = 1, WHITESPACE = 2, BASE = 3, IRIREF = 4, PREFIX = 5, PNAME_NS = 6, SELECT = 7, DISTINCT = 8, REDUCED = 9, LParen = 10, AS = 11, RParen = 12, Star = 13, CONSTRUCT = 14, WHERE = 15, LCurly = 16, RCurly = 17, DESCRIBE = 18, ASK = 19, FROM = 20, NAMED = 21, GROUP = 22, BY = 23, HAVING = 24, ORDER = 25, ASC = 26, DESC = 27, LIMIT = 28, INTEGER = 29, OFFSET = 30, VALUES = 31, Semicolon = 32, LOAD = 33, SILENT = 34, INTO = 35, CLEAR = 36, DROP = 37, CREATE = 38, ADD = 39, TO = 40, MOVE = 41, COPY = 42, INSERT = 43, DATA = 44, INSERT_DATA = 45, DELETE_DATA = 46, DELETE_WHERE = 47, DELETE = 48, WITH = 49, USING = 50, DEFAULT = 51, GRAPH = 52, ALL = 53, Dot = 54, OPTIONAL = 55, SERVICE = 56, BIND = 57, NIL = 58, UNDEF = 59, MINUS = 60, UNION = 61, FILTER = 62, Colon = 63, a = 64, Pipe = 65, Slash = 66, Zirkumflex = 67, QuestionMark = 68, Plus = 69, ExclamationMark = 70, LBrack = 71, RBrack = 72, VAR1 = 73, VAR2 = 74, DoublePipe = 75, DoubleAnd = 76, Equals = 77, ExclamationMarkEquals = 78, Less = 79, More = 80, LessEquals = 81, MoreEquals = 82, IN = 83, NOT = 84, Minus = 85, STR = 86, LANG = 87, LANGMATCHES = 88, DATATYPE = 89, BOUND = 90, IRI = 91, URI = 92, BNODE = 93, RAND = 94, ABS = 95, CEIL = 96, FLOOR = 97, ROUND = 98, CONCAT = 99, STRLEN = 100, UCASE = 101, LCASE = 102, ENCODE_FOR_URI = 103, CONTAINS = 104, STRSTARTS = 105, STRENDS = 106, STRBEFORE = 107, STRAFTER = 108, YEAR = 109, MONTH = 110, DAY = 111, HOURS = 112, MINUTES = 113, SECONDS = 114, TIMEZONE = 115, TZ = 116, NOW = 117, UUID = 118, STRUUID = 119, MD5 = 120, SHA1 = 121, SHA256 = 122, SHA384 = 123, SHA512 = 124, COALESCE = 125, IF = 126, STRLANG = 127, STRDT = 128, sameTerm = 129, isIRI = 130, isURI = 131, isBLANK = 132, isLITERAL = 133, isNUMERIC = 134, REGEX = 135, SUBSTR = 136, REPLACE = 137, EXISTS = 138, COUNT = 139, SUM = 140, MIN = 141, MAX = 142, AVG = 143, SAMPLE = 144, GROUP_CONCAT = 145, SEPARATOR = 146, LANGTAG = 147, DoubleZirkumflex = 148, DECIMAL = 149, DOUBLE = 150, INTEGER_POSITIVE = 151, DECIMAL_POSITIVE = 152, DOUBLE_POSITIVE = 153, INTEGER_NEGATIVE = 154, DECIMAL_NEGATIVE = 155, DOUBLE_NEGATIVE = 156, True = 157, False = 158, STRING_LITERAL1 = 159, STRING_LITERAL2 = 160, STRING_LITERAL_LONG1 = 161, STRING_LITERAL_LONG2 = 162, PNAME_LN = 163, BLANK_NODE_LABEL = 164, ANON = 165, Query = 166, Prologue = 167, SelectQuery = 168, ConstructQuery = 169, DescribeQuery = 170, AskQuery = 171, ValuesClause = 172, UpdateUnit = 173, Update = 174, BaseDecl = 175, PrefixDecl = 176, SelectClause = 177, DatasetClause = 178, WhereClause = 179, SolutionModifier = 180, SubSelect = 181, Var = 182, Expression = 183, ConstructTemplate = 184, TriplesTemplate = 185, VarOrIri = 186, DefaultGraphClause = 187, NamedGraphClause = 188, SourceSelector = 189, iri = 190, GroupGraphPattern = 191, GroupClause = 192, HavingClause = 193, OrderClause = 194, LimitOffsetClauses = 195, GroupCondition = 196, BuiltInCall = 197, FunctionCall = 198, HavingCondition = 199, Constraint = 200, OrderCondition = 201, BrackettedExpression = 202, LimitClause = 203, OffsetClause = 204, DataBlock = 205, UpdateOne = 206, Load = 207, Clear = 208, Drop = 209, Move = 210, Copy = 211, Create = 212, InsertData = 213, DeleteData = 214, DeleteWhere = 215, Modify = 216, GraphRef = 217, GraphRefAll = 218, Add = 219, GraphOrDefault = 220, QuadData = 221, QuadPattern = 222, DeleteClause = 223, InsertClause = 224, UsingClause = 225, Quads = 226, QuadsNotTriples = 227, TriplesSameSubject = 228, GroupGraphPatternSub = 229, TriplesBlock = 230, GraphPatternNotTriples = 231, TriplesSameSubjectPath = 232, GroupOrUnionGraphPattern = 233, OptionalGraphPattern = 234, MinusGraphPattern = 235, GraphGraphPattern = 236, ServiceGraphPattern = 237, Filter = 238, Bind = 239, InlineData = 240, InlineDataOneVar = 241, InlineDataFull = 242, DataBlockValue = 243, RDFLiteral = 244, NumericLiteral = 245, BooleanLiteral = 246, ArgList = 247, ExpressionList = 248, ConstructTriples = 249, VarOrTerm = 250, PropertyListNotEmpty = 251, TriplesNode = 252, PropertyList = 253, Verb = 254, ObjectList = 255, Object = 256, GraphNode = 257, PropertyListPathNotEmpty = 258, TriplesNodePath = 259, PropertyListPath = 260, VerbPath = 261, VerbSimple = 262, ObjectListPath = 263, Path = 264, ObjectPath = 265, GraphNodePath = 266, PathAlternative = 267, PathSequence = 268, PathEltOrInverse = 269, PathElt = 270, PathPrimary = 271, PathMod = 272, PathNegatedPropertySet = 273, PathOneInPropertySet = 274, Integer = 275, Collection = 276, BlankNodePropertyList = 277, CollectionPath = 278, BlankNodePropertyListPath = 279, GraphTerm = 280, BlankNode = 281, ConditionalOrExpression = 282, ConditionalAndExpression = 283, ValueLogical = 284, RelationalExpression = 285, NumericExpression = 286, AdditiveExpression = 287, MultiplicativeExpression = 288, NumericLiteralPositive = 289, NumericLiteralNegative = 290, UnaryExpression = 291, PrimaryExpression = 292, iriOrFunction = 293, Aggregate = 294, SubstringExpression = 295, StrReplaceExpression = 296, RegexExpression = 297, ExistsFunc = 298, NotExistsFunc = 299, String = 300, NumericLiteralUnsigned = 301, PrefixedName = 302, QueryUnit = 303,
}

Variants§

§

Eof = 0

§

Error = 1

§

WHITESPACE = 2

§

BASE = 3

§

IRIREF = 4

§

PREFIX = 5

§

PNAME_NS = 6

§

SELECT = 7

§

DISTINCT = 8

§

REDUCED = 9

§

LParen = 10

§

AS = 11

§

RParen = 12

§

Star = 13

§

CONSTRUCT = 14

§

WHERE = 15

§

LCurly = 16

§

RCurly = 17

§

DESCRIBE = 18

§

ASK = 19

§

FROM = 20

§

NAMED = 21

§

GROUP = 22

§

BY = 23

§

HAVING = 24

§

ORDER = 25

§

ASC = 26

§

DESC = 27

§

LIMIT = 28

§

INTEGER = 29

§

OFFSET = 30

§

VALUES = 31

§

Semicolon = 32

§

LOAD = 33

§

SILENT = 34

§

INTO = 35

§

CLEAR = 36

§

DROP = 37

§

CREATE = 38

§

ADD = 39

§

TO = 40

§

MOVE = 41

§

COPY = 42

§

INSERT = 43

§

DATA = 44

§

INSERT_DATA = 45

§

DELETE_DATA = 46

§

DELETE_WHERE = 47

§

DELETE = 48

§

WITH = 49

§

USING = 50

§

DEFAULT = 51

§

GRAPH = 52

§

ALL = 53

§

Dot = 54

§

OPTIONAL = 55

§

SERVICE = 56

§

BIND = 57

§

NIL = 58

§

UNDEF = 59

§

MINUS = 60

§

UNION = 61

§

FILTER = 62

§

Colon = 63

§

a = 64

§

Pipe = 65

§

Slash = 66

§

Zirkumflex = 67

§

QuestionMark = 68

§

Plus = 69

§

ExclamationMark = 70

§

LBrack = 71

§

RBrack = 72

§

VAR1 = 73

§

VAR2 = 74

§

DoublePipe = 75

§

DoubleAnd = 76

§

Equals = 77

§

ExclamationMarkEquals = 78

§

Less = 79

§

More = 80

§

LessEquals = 81

§

MoreEquals = 82

§

IN = 83

§

NOT = 84

§

Minus = 85

§

STR = 86

§

LANG = 87

§

LANGMATCHES = 88

§

DATATYPE = 89

§

BOUND = 90

§

IRI = 91

§

URI = 92

§

BNODE = 93

§

RAND = 94

§

ABS = 95

§

CEIL = 96

§

FLOOR = 97

§

ROUND = 98

§

CONCAT = 99

§

STRLEN = 100

§

UCASE = 101

§

LCASE = 102

§

ENCODE_FOR_URI = 103

§

CONTAINS = 104

§

STRSTARTS = 105

§

STRENDS = 106

§

STRBEFORE = 107

§

STRAFTER = 108

§

YEAR = 109

§

MONTH = 110

§

DAY = 111

§

HOURS = 112

§

MINUTES = 113

§

SECONDS = 114

§

TIMEZONE = 115

§

TZ = 116

§

NOW = 117

§

UUID = 118

§

STRUUID = 119

§

MD5 = 120

§

SHA1 = 121

§

SHA256 = 122

§

SHA384 = 123

§

SHA512 = 124

§

COALESCE = 125

§

IF = 126

§

STRLANG = 127

§

STRDT = 128

§

sameTerm = 129

§

isIRI = 130

§

isURI = 131

§

isBLANK = 132

§

isLITERAL = 133

§

isNUMERIC = 134

§

REGEX = 135

§

SUBSTR = 136

§

REPLACE = 137

§

EXISTS = 138

§

COUNT = 139

§

SUM = 140

§

MIN = 141

§

MAX = 142

§

AVG = 143

§

SAMPLE = 144

§

GROUP_CONCAT = 145

§

SEPARATOR = 146

§

LANGTAG = 147

§

DoubleZirkumflex = 148

§

DECIMAL = 149

§

DOUBLE = 150

§

INTEGER_POSITIVE = 151

§

DECIMAL_POSITIVE = 152

§

DOUBLE_POSITIVE = 153

§

INTEGER_NEGATIVE = 154

§

DECIMAL_NEGATIVE = 155

§

DOUBLE_NEGATIVE = 156

§

True = 157

§

False = 158

§

STRING_LITERAL1 = 159

§

STRING_LITERAL2 = 160

§

STRING_LITERAL_LONG1 = 161

§

STRING_LITERAL_LONG2 = 162

§

PNAME_LN = 163

§

BLANK_NODE_LABEL = 164

§

ANON = 165

§

Query = 166

§

Prologue = 167

§

SelectQuery = 168

§

ConstructQuery = 169

§

DescribeQuery = 170

§

AskQuery = 171

§

ValuesClause = 172

§

UpdateUnit = 173

§

Update = 174

§

BaseDecl = 175

§

PrefixDecl = 176

§

SelectClause = 177

§

DatasetClause = 178

§

WhereClause = 179

§

SolutionModifier = 180

§

SubSelect = 181

§

Var = 182

§

Expression = 183

§

ConstructTemplate = 184

§

TriplesTemplate = 185

§

VarOrIri = 186

§

DefaultGraphClause = 187

§

NamedGraphClause = 188

§

SourceSelector = 189

§

iri = 190

§

GroupGraphPattern = 191

§

GroupClause = 192

§

HavingClause = 193

§

OrderClause = 194

§

LimitOffsetClauses = 195

§

GroupCondition = 196

§

BuiltInCall = 197

§

FunctionCall = 198

§

HavingCondition = 199

§

Constraint = 200

§

OrderCondition = 201

§

BrackettedExpression = 202

§

LimitClause = 203

§

OffsetClause = 204

§

DataBlock = 205

§

UpdateOne = 206

§

Load = 207

§

Clear = 208

§

Drop = 209

§

Move = 210

§

Copy = 211

§

Create = 212

§

InsertData = 213

§

DeleteData = 214

§

DeleteWhere = 215

§

Modify = 216

§

GraphRef = 217

§

GraphRefAll = 218

§

Add = 219

§

GraphOrDefault = 220

§

QuadData = 221

§

QuadPattern = 222

§

DeleteClause = 223

§

InsertClause = 224

§

UsingClause = 225

§

Quads = 226

§

QuadsNotTriples = 227

§

TriplesSameSubject = 228

§

GroupGraphPatternSub = 229

§

TriplesBlock = 230

§

GraphPatternNotTriples = 231

§

TriplesSameSubjectPath = 232

§

GroupOrUnionGraphPattern = 233

§

OptionalGraphPattern = 234

§

MinusGraphPattern = 235

§

GraphGraphPattern = 236

§

ServiceGraphPattern = 237

§

Filter = 238

§

Bind = 239

§

InlineData = 240

§

InlineDataOneVar = 241

§

InlineDataFull = 242

§

DataBlockValue = 243

§

RDFLiteral = 244

§

NumericLiteral = 245

§

BooleanLiteral = 246

§

ArgList = 247

§

ExpressionList = 248

§

ConstructTriples = 249

§

VarOrTerm = 250

§

PropertyListNotEmpty = 251

§

TriplesNode = 252

§

PropertyList = 253

§

Verb = 254

§

ObjectList = 255

§

Object = 256

§

GraphNode = 257

§

PropertyListPathNotEmpty = 258

§

TriplesNodePath = 259

§

PropertyListPath = 260

§

VerbPath = 261

§

VerbSimple = 262

§

ObjectListPath = 263

§

Path = 264

§

ObjectPath = 265

§

GraphNodePath = 266

§

PathAlternative = 267

§

PathSequence = 268

§

PathEltOrInverse = 269

§

PathElt = 270

§

PathPrimary = 271

§

PathMod = 272

§

PathNegatedPropertySet = 273

§

PathOneInPropertySet = 274

§

Integer = 275

§

Collection = 276

§

BlankNodePropertyList = 277

§

CollectionPath = 278

§

BlankNodePropertyListPath = 279

§

GraphTerm = 280

§

BlankNode = 281

§

ConditionalOrExpression = 282

§

ConditionalAndExpression = 283

§

ValueLogical = 284

§

RelationalExpression = 285

§

NumericExpression = 286

§

AdditiveExpression = 287

§

MultiplicativeExpression = 288

§

NumericLiteralPositive = 289

§

NumericLiteralNegative = 290

§

UnaryExpression = 291

§

PrimaryExpression = 292

§

iriOrFunction = 293

§

Aggregate = 294

§

SubstringExpression = 295

§

StrReplaceExpression = 296

§

RegexExpression = 297

§

ExistsFunc = 298

§

NotExistsFunc = 299

§

String = 300

§

NumericLiteralUnsigned = 301

§

PrefixedName = 302

§

QueryUnit = 303

Implementations§

Trait Implementations§

Source§

impl Clone for SyntaxKind

Source§

fn clone(&self) -> SyntaxKind

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SyntaxKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<SyntaxKind> for SyntaxKind

Source§

fn from(kind: SyntaxKind) -> Self

Converts to this type from the input type.
Source§

impl Hash for SyntaxKind

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<'s> Logos<'s> for SyntaxKind

Source§

type Error = ()

Error type returned by the lexer. This can be set using #[logos(error = MyError)]. Defaults to () if not set.
Source§

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

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>)

The heart of Logos. Called by the Lexer. The implementation for this function is generated by the logos-derive crate.
Source§

fn lexer(source: &'source Self::Source) -> Lexer<'source, Self>
where Self::Extras: Default,

Create a new instance of a Lexer that will produce tokens implementing this Logos.
Source§

fn lexer_with_extras( source: &'source Self::Source, extras: Self::Extras, ) -> Lexer<'source, Self>

Create a new instance of a Lexer with the provided Extras that will produce tokens implementing this Logos.
Source§

impl Ord for SyntaxKind

Source§

fn cmp(&self, other: &SyntaxKind) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for SyntaxKind

Source§

fn eq(&self, other: &SyntaxKind) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for SyntaxKind

Source§

fn partial_cmp(&self, other: &SyntaxKind) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for SyntaxKind

Source§

impl Eq for SyntaxKind

Source§

impl StructuralPartialEq for SyntaxKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.