This site describes solve-engine 2.44.0, the version npm installs.
ExpressionTokens
Defined in: packages/engine/src/engine/ExpressionEngine.ts:466
The part of one expression the engine reads as code, as ExpressionEngine.readExpressionTokens returns it.
Properties
Section titled “Properties”readonly start: number;Defined in: packages/engine/src/engine/ExpressionEngine.ts:474
The index of the first token the parser reads. Nonzero only when the line opens with a label the parser set aside (“rent: 1200” starts at the token after the colon), since a label is prose, not code.
tokens
Section titled “tokens”readonly tokens: readonly Token[];Defined in: packages/engine/src/engine/ExpressionEngine.ts:468
The expression’s normalised tokens, with offsets into the text that was read.
readonly unit: | DocumentUnit | null;Defined in: packages/engine/src/engine/ExpressionEngine.ts:480
The unit the expression defines when it is a user-unit definition
(1 sprint = 2 weeks), whose words name a unit rather than a variable;
null otherwise.