Tokenize an Excel formula string into an array of typed tokens.
Strips a leading = if present. Collects errors for malformed input
rather than throwing, allowing partial tokenization of broken formulas.
Whitespace is insignificant except between two references, where a run of
it becomes one { type: 'operator', value: ' ' } intersection token.
Tokenize an Excel formula string into an array of typed tokens.
Strips a leading
=if present. Collects errors for malformed input rather than throwing, allowing partial tokenization of broken formulas. Whitespace is insignificant except between two references, where a run of it becomes one{ type: 'operator', value: ' ' }intersection token.