module documentation
Provides the ExpressionTree class as a use case of a specialized tree.
Class |
|
An arithmetic expression tree. |
Function | build |
Returns an ExpressionTree based upon by a tokenized expression. |
Function | tokenize |
Produces list of tokens indicated by a raw expression string. |
Returns an ExpressionTree based upon by a tokenized expression.
tokens must be an iterable of strings representing a fully parenthesized binary expression, such as ['(', '43', '-', '(', '3', '*', '10', ')', ')']