@haz3y0ne/parsexl
Version:
Parses Excel formulas into a clean, well-typed abstract syntax tree you can analyse or evaluate in TypeScript.
30 lines (29 loc) • 984 B
TypeScript
export declare const tokenRegexMap: {
readonly LITERAL: RegExp;
readonly BOOLEAN: RegExp;
readonly NUMBER: RegExp;
readonly PERCENTAGE: RegExp;
readonly DYNAMIC_ERROR: RegExp;
readonly ERROR: RegExp;
readonly THREE_D_REFERENCE: RegExp;
readonly EXTERNAL_REFERENCE: RegExp;
readonly RANGE: RegExp;
readonly CELL: RegExp;
readonly CELL_OR_RANGE: RegExp;
readonly R1C1: RegExp;
readonly STRUCTURED_EXT: RegExp;
readonly STRUCTURED_REFERENCE: RegExp;
readonly TABLE_COLUMN: RegExp;
readonly ARRAY: RegExp;
readonly OPERATOR: RegExp;
readonly PERCENT_OPERATOR: RegExp;
readonly WILDCARD: RegExp;
readonly PARENTHESIS: RegExp;
readonly ARG_SEPARATOR: RegExp;
readonly IMPLICIT_INTERSECTION: RegExp;
readonly SPILL_OPERATOR: RegExp;
readonly FUNCTION: RegExp;
readonly NAMED_RANGE: RegExp;
};
export type TokenRegexMap = typeof tokenRegexMap;
export type TokenPattern = keyof TokenRegexMap;