Function ADS::expressionTree

Function Documentation

BinaryTree<std::string> *ADS::expressionTree(std::string_view e)

the expression tree of the postfix expression e, whose tokens are separated by spaces; the caller owns it

Pre:

e is a well formed postfix expression