Skip to main content

TokenKind

Type Alias TokenKind 

Source
pub type TokenKind = i32;
Expand description

Token kinds cross the lexer boundary as plain i32 (TK_*), matching the i32 that lua_lex emits and the error formatters read. These constants are the parser’s view of that boundary; they are deliberately not an enum so the lexer/parser interface stays a single integer contract.