klyn.code.Token.kind
property
public readonly property kind as TokenKind
Description

Lexical classification of the token.

Returns

The token's TokenKind.

Example
import klyn.code

tok = Token(TokenKind.NUMBER, "42")
assert tok.kind == TokenKind.NUMBER