Tokenizes the input first, then builds the AST via recursive descent.
Errors from both the tokenizer and parser are collected in errors.
A body (the text after an optional leading =) longer than 8192
characters is not tokenized: the result is { ast: null, errors: ['Formula exceeds 8192 characters'] }.
Parse an Excel formula string into a typed AST.
Tokenizes the input first, then builds the AST via recursive descent. Errors from both the tokenizer and parser are collected in
errors. A body (the text after an optional leading=) longer than 8192 characters is not tokenized: the result is{ ast: null, errors: ['Formula exceeds 8192 characters'] }.