UNPKG

@abdullah2993/expression-parser

Version:

An expression evaluator written in typescript with the goal to support SQL like WHERE clauses.

41 lines (40 loc) 815 B
export declare enum TokenType { Illegal = "ILLEGAL", EOF = "EOF", Identifier = "IDENT", String = "STR", Numeric = "NUM", Plus = "+", Minus = "-", Mul = "*", Div = "/", Eq = "=", Neq = "<>", Gt = ">", Lt = "<", Gte = ">=", Lte = "<=", Lparn = "(", Rparn = ")", And = "and", Or = "or", Not = "not", True = "true", False = "false", Between = "between", Is = "is", Null = "null", Comma = ",", Case = "case", When = "when", Else = "else", End = "end", Then = "then" } export declare class Token { type: TokenType; literal: string; position: Number; constructor(type: TokenType, literal: string, position: Number); toString(): string; }