blob: b943ebe5644904885621ef94a8b70d4249a1fe0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef PARSER_SRC_PARSER_H_
#define PARSER_SRC_PARSER_H_
#include <vector>
#include <stack>
#include "tree.h"
namespace SimpleParser {
class Parser {
public:
double calculate(std::string);
private:
int8_t getPriority(char);
std::vector<std::string> lexer(std::string);
Node* buildTree(Tree*, std::string);
};
}
#endif // PARSER_SRC_PARSER_H_
|