#[repr(u16)]pub enum LuaTokenType {
Show 64 variants
Root = 0,
And = 1,
Break = 2,
Do = 3,
Else = 4,
Elseif = 5,
End = 6,
False = 7,
For = 8,
Function = 9,
Goto = 10,
If = 11,
In = 12,
Local = 13,
Nil = 14,
Not = 15,
Or = 16,
Repeat = 17,
Return = 18,
Then = 19,
True = 20,
Until = 21,
While = 22,
Identifier = 23,
Number = 24,
String = 25,
Plus = 26,
Minus = 27,
Star = 28,
Slash = 29,
Percent = 30,
Caret = 31,
Hash = 32,
Ampersand = 33,
Tilde = 34,
Pipe = 35,
LtLt = 36,
GtGt = 37,
SlashSlash = 38,
EqEq = 39,
TildeEq = 40,
LtEq = 41,
GtEq = 42,
Lt = 43,
Gt = 44,
Eq = 45,
LeftParen = 46,
RightParen = 47,
LeftBrace = 48,
RightBrace = 49,
LeftBracket = 50,
RightBracket = 51,
ColonColon = 52,
Semicolon = 53,
Colon = 54,
Comma = 55,
Dot = 56,
DotDot = 57,
DotDotDot = 58,
Whitespace = 59,
Newline = 60,
Comment = 61,
EndOfStream = 62,
Error = 63,
}Expand description
Token types for Lua.
Variants§
Root = 0
Root node.
And = 1
The and keyword.
Break = 2
The break keyword.
Do = 3
The do keyword.
Else = 4
The else keyword.
Elseif = 5
The elseif keyword.
End = 6
The end keyword.
False = 7
The false keyword.
For = 8
The for keyword.
Function = 9
The function keyword.
Goto = 10
The goto keyword.
If = 11
The if keyword.
In = 12
The in keyword.
Local = 13
The local keyword.
Nil = 14
The nil keyword.
Not = 15
The not keyword.
Or = 16
The or keyword.
Repeat = 17
The repeat keyword.
Return = 18
The return keyword.
Then = 19
The then keyword.
True = 20
The true keyword.
Until = 21
The until keyword.
While = 22
The while keyword.
Identifier = 23
An identifier.
Number = 24
A numeric literal.
String = 25
A string literal.
Plus = 26
The + operator.
Minus = 27
The - operator.
Star = 28
The * operator.
Slash = 29
The / operator.
Percent = 30
The % operator.
Caret = 31
The ^ operator.
Hash = 32
The # operator.
Ampersand = 33
The & operator.
Tilde = 34
The ~ operator.
Pipe = 35
The | operator.
LtLt = 36
The << operator.
GtGt = 37
The >> operator.
SlashSlash = 38
The // operator.
EqEq = 39
The == operator.
TildeEq = 40
The ~= operator.
LtEq = 41
The <= operator.
GtEq = 42
The >= operator.
Lt = 43
The < operator.
Gt = 44
The > operator.
Eq = 45
The = operator.
LeftParen = 46
The ( punctuation.
RightParen = 47
The ) punctuation.
LeftBrace = 48
The { punctuation.
RightBrace = 49
The } punctuation.
LeftBracket = 50
The [ punctuation.
RightBracket = 51
The ] punctuation.
ColonColon = 52
The :: punctuation.
Semicolon = 53
The ; punctuation.
Colon = 54
The : punctuation.
Comma = 55
The , punctuation.
Dot = 56
The . punctuation.
DotDot = 57
The .. punctuation.
DotDotDot = 58
The ... punctuation.
Whitespace = 59
Whitespace.
Newline = 60
Newline.
Comment = 61
A comment.
EndOfStream = 62
End of stream marker.
Error = 63
Error marker.
Trait Implementations§
Source§impl Clone for LuaTokenType
impl Clone for LuaTokenType
Source§fn clone(&self) -> LuaTokenType
fn clone(&self) -> LuaTokenType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more