@1771technologies/lytenyte-pro
Version:
Blazingly fast headless React data grid with 100s of features.
13 lines (12 loc) • 584 B
TypeScript
export type BinaryOperator = "||" | "&&" | "==" | "!=" | "<" | ">" | "<=" | ">=" | "+" | "-" | "*" | "/" | "%" | "**" | "in" | "not";
export type UnaryOperator = "!" | "-" | "+";
export type BinaryExpressionOperator = Exclude<BinaryOperator, "not"> | "not in" | "??";
export type OperatorValue = BinaryOperator | UnaryOperator;
export type PunctuationValue = "(" | ")" | "[" | "]" | "{" | "}" | "," | "." | ":" | "?";
export interface Token {
readonly type: string;
readonly start: number;
readonly end: number;
readonly value: string;
readonly error?: unknown;
}