Enum tusk_lexer::TokenType [−][src]
pub enum TokenType<'t> {}Show variants
String, Integer, Float, Identifier(&'t str), Variable(&'t str), Function, ShortFunction, If, Else, While, Do, For, Foreach, As, Class, Abstract, Implements, Clone, Try, Catch, Const, Public, Protected, Private, Final, Static, Trait, Switch, Continue, Break, Case, Yield, From, Callable, Default, Declare, Echo, ElseIf, Empty, Exit, Die, Global, Goto, Include, IncludeOnce, Require, RequireOnce, Isset, Namespace, New, Print, Return, Throw, And, Or, True, False, Null, Error,
Variants
Identifier(&'t str)
Variable(&'t str)
Trait Implementations
impl<'s> Logos<'s> for TokenType<'s>
[src]
impl<'s> Logos<'s> for TokenType<'s>
[src]type Extras = ()
type Extras = ()
Associated type Extras
for the particular lexer. This can be set using
#[logos(extras = MyExtras)]
and accessed inside callbacks. Read more
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]
. Read more
fn lex(lex: &mut Lexer<'s, Self>)
[src]
fn lex(lex: &mut Lexer<'s, Self>)
[src]The heart of Logos. Called by the Lexer
. The implementation for this function
is generated by the logos-derive
crate. Read more