API reference
python:arx:arx.lexer.core.Token.__init__
method __init__
__init__(kind: TokenKind, value: Any, location: SourceLocation = SourceLocation(0, 0), source_text: str | None = None) -> None
Source: packages/arx/src/arx/lexer/core.py:169
Initialize Token.
Parameters
-
kind — Kind of value or operation.; Type: TokenKind
-
value — Value to process.; Type: Any
-
location — Source coordinates associated with the operation.; Type: SourceLocation
-
source_text — Source text.; Type: str | None
Returns
Type: None