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 <vector> #include <stack> #include "tree.h" namespace SimpleParser { double calculate(std::string); namespace { int8_t getPriority(char); std::vector<std::string> lexer(std::string); Node* buildTree(Tree*, std::string); } } #endif // PARSER_SRC_PARSER_H_