1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#ifndef PARSER_SRC_PARSER_H_ #define PARSER_SRC_PARSER_H_ #include <string> #include <vector> #include "tree.h" namespace SimpleParser { double calculate(std::string term) { return Tree(term).solve(); } std::string exportTree(std::string term) { return Tree(term).print(); } } #endif // PARSER_SRC_PARSER_H_