#ifndef PARSER_SRC_NODE_H_ #define PARSER_SRC_NODE_H_ #include #include #include #include "nodes.h" namespace SimpleParser { class Tree { public: Tree(std::string); double solve(); std::string print(); private: Node* addOperand(Node**, double); Node* addOperand(Node**, std::string); Node* addOperator(Node**, TokenType); Node* buildTree(std::string); std::vector> node_collection_; Node* root_node_; std::string term_; }; } #endif // PARSER_SRC_NODE_H_