[−][src]Module rsc::parser
For using the symbols generated by the lexer and making sense of them in the context of mathematical expressions.
Enums
Expr | |
ParserError |
Functions
parse | Turn an array of tokens into an expression, which can be computed into a final number. |
parse_no_preprocess | Same as |
preprocess | For detecting parsing errors using an iterative solution. This function can tell when
users accidentally enter an expression such as "2x" (when they mean "2(x)"). But just
as easily detects unknowingly valid expressions like "neg 3" where "neg" is currently
|