Token
loreline.Token (Class)
Represents a token in the source code.
Instance Members
The type of this token.
pos: PositionThe position of this token in the source code.
toString(): StringConverts the token to a human-readable string.
| Returns | Description |
|---|---|
| String | Formatted token information with position |
Creates a new token.
| Name | Type | Description |
|---|---|---|
type |
Anonymous | The token type |
pos |
Position | The token's position |