Expand description
Located formula errors, terminal-free: the span of text a
[ParseError] is about, its message, and a hint for the common cases
(a misspelled name, the wrong number of arguments, an unclosed ().
Structsยง
- Diagnostic
- A parse error located in the formula text.
Functionsยง
- call_
name ๐ - The last
name(beforebefore, as the range of the name. - diagnose
- Locate
err(from parsingtext) and add a hint where one helps. - did_
you_ ๐mean - โdid you mean X?โ for the names closest to
nameby edit distance: functions when it is called, else categories (and measures, unless only a category fits there). - distance ๐
- Levenshtein distance between two strings, by chars.
- token_
span ๐ - The token starting at byte
pos: a quoted name, a word, a number, or one character. Past the end, the last character. - unclosed_
paren ๐ - Byte offset of the innermost
(left open at the end oftext; parentheses in strings and quoted names do not count.