l0_lexer::Token class

Defined in module l0_lexer (l0_lexer.py).

A single token produced by the lexer.

Public static attributes

static TokenKind kind
static str text
static int line
static int column
static Optional diagnostic
static Optional diagnostics
static Optional recovery

Public functions

auto __repr__(self) -> str
Returns a string representation of the token.