#[repr(u16)]pub enum SyntaxKind {
Show 72 variants
Eof = 0,
WhiteSpace = 1,
Comment = 2,
Base = 3,
BlankNode = 4,
BlankNodePropertyList = 5,
Collection = 6,
Expression = 7,
Formula = 8,
FormulaContent = 9,
Iri = 10,
IriPropertyList = 11,
Literal = 12,
N3Directive = 13,
N3Doc = 14,
N3Statement = 15,
NumericLiteral = 16,
Object = 17,
ObjectList = 18,
Path = 19,
PathItem = 20,
Predicate = 21,
PredicateObjectList = 22,
PrefixId = 23,
PrefixedName = 24,
QuickVar = 25,
RdfLiteral = 26,
SparqlBase = 27,
SparqlDirective = 28,
SparqlPrefix = 29,
Subject = 30,
Triples = 31,
Verb = 32,
Bang = 33,
BrOpen = 34,
BrClose = 35,
Comma = 36,
Stop = 37,
Colon = 38,
ArrowLeft = 39,
ImplyLeft = 40,
Eq = 41,
ImplyRight = 42,
BaseToken = 43,
PrefixToken = 44,
BaseLit = 45,
PrefixLit = 46,
SqOpen = 47,
SqClose = 48,
Hat = 49,
Datatype = 50,
Alit = 51,
HasLit = 52,
IsLit = 53,
OfLit = 54,
ClOpen = 55,
ClClose = 56,
Anon = 57,
BlankNodeLabel = 58,
BooleanLiteral = 59,
Decimal = 60,
Double = 61,
Integer = 62,
Iplstart = 63,
Iriref = 64,
Langtag = 65,
PnameLn = 66,
PnameNs = 67,
QuickVarName = 68,
String = 69,
Error = 70,
ROOT = 71,
}Variants§
Eof = 0
WhiteSpace = 1
Comment = 2
Base = 3
producings
BlankNode = 4
BlankNodePropertyList = 5
Collection = 6
Expression = 7
Formula = 8
FormulaContent = 9
Iri = 10
IriPropertyList = 11
Literal = 12
N3Directive = 13
N3Doc = 14
N3Statement = 15
NumericLiteral = 16
Object = 17
ObjectList = 18
Path = 19
PathItem = 20
Predicate = 21
PredicateObjectList = 22
PrefixId = 23
PrefixedName = 24
QuickVar = 25
RdfLiteral = 26
SparqlBase = 27
SparqlDirective = 28
SparqlPrefix = 29
Subject = 30
Triples = 31
Verb = 32
Bang = 33
terminals
BrOpen = 34
BrClose = 35
Comma = 36
Stop = 37
Colon = 38
ArrowLeft = 39
ImplyLeft = 40
Eq = 41
ImplyRight = 42
BaseToken = 43
PrefixToken = 44
BaseLit = 45
PrefixLit = 46
SqOpen = 47
SqClose = 48
Hat = 49
Datatype = 50
Alit = 51
HasLit = 52
IsLit = 53
OfLit = 54
ClOpen = 55
ClClose = 56
Anon = 57
BlankNodeLabel = 58
BooleanLiteral = 59
Decimal = 60
Double = 61
Integer = 62
Iplstart = 63
Iriref = 64
Langtag = 65
PnameLn = 66
PnameNs = 67
QuickVarName = 68
String = 69
Error = 70
ROOT = 71
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