interface Token {
    constant: boolean;
    identifier: boolean;
    index: number;
    operator: boolean;
    text: string;
    value: string | number;
}

Properties

constant: boolean

Indicates if token is a constant.

identifier: boolean

Indicates if token is an identifier.

index: number

Index of the token.

operator: boolean

Indicates if token is an operator.

text: string

Text of the token.

value: string | number

Value of the token if it's a constant.