class documentation

class TokenKind(Enum): (source)

View In Hierarchy

Lexical category of a token produced by the tokenizer.

Constant KEYWORD A reserved keyword token, e.g. EQ, NE, GT, LT, GE, LE, MATCH, AND, OR.
Constant LITERAL A literal value token, e.g. a number or a double-quoted string.
Constant PATH A path expression token, e.g. "$.foo[2].bar" or "$.'a.b'[0]".
KEYWORD: str = (source)

A reserved keyword token, e.g. EQ, NE, GT, LT, GE, LE, MATCH, AND, OR.

Value
'KEYWORD'
LITERAL: str = (source)

A literal value token, e.g. a number or a double-quoted string.

Value
'LITERAL'
PATH: str = (source)

A path expression token, e.g. "$.foo[2].bar" or "$.'a.b'[0]".

Value
'PATH'