Numeric literal (1, 3.14, .5, 1E+3); the value is the source text.
String literal; the value is the unescaped content without quotes.
TRUE or FALSE (any case); the value is upper-cased.
One of the Excel error literals (#N/A, #SPILL!, ...). A sheet-qualified
literal such as Sheet1!#REF! is one token whose value is the literal alone
and whose span covers the prefix.
Cell reference with any sheet or 3-D prefix: A1, $B$2, Sheet1!A1,
Sheet1:Sheet3!A1. Every one lies inside the grid A1:XFD1048576.
Deprecated: never emitted by tokenize(); removed in 2.0. A1:B2 tokenizes
as cell_ref, colon, cell_ref; parseFormula() joins them into an AST
node of type 'range', so match that node type instead.
Defined name: an identifier that is not a function, boolean or cell
reference inside the grid (so XFE1 and A0 are names, as in Excel),
or quoted text with no ! after it.
Identifier immediately followed by (; the value excludes the parenthesis.
Binary operator: + - * / ^ & = <> < > <= >=, or ' ' (a single space) for
the intersection operator, emitted for a whitespace run between a reference
and the start of another reference.
, outside an array constant.
; outside an array constant. Stored formulas use ; only as the
array-constant row separator, so this token is always accompanied by the
error "';' at position N is only valid as an array-constant row separator".
: that is not part of a column_range, row_range or 3-D prefix.
Unary + or -.
; inside an array constant.
, inside an array constant.
Whole-column range with any sheet prefix: A:A, $A:$C, Data!B:C; both columns within XFD.
Whole-row range with any sheet prefix: 1:1, $2:$5, Sheet1!2:5; both rows within 1..1048576.
Structured table reference: Table1[Col], Table1[[#Headers],[Col]], [@Col].
The kind of a Token.
'range'is never produced by tokenize: a range such asA1:B2lexes ascell_ref,colon,cell_ref. The member is deprecated and is removed in 2.0.