Skip to main content

Module expression

Module expression 

Source
Expand description

Port of src/ast/math/expression.ts.

Math[name.toUpperCase()] lookups of the typescript are math_constant(): undefined is None.

Functionsยง

build_expression
generate a binary expression tree
evaluate
evaluate an array of tokens. the tokens are cloned: the result does not share any token with the input
evaluate_func
evaluate a math function
inline_expression
convert BinaryExpression into an array