aboutsummaryrefslogtreecommitdiff
path: root/src/parser.h
blob: 677717a41e7ca368a17d2f741b7d99c3ba0ba74f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef PARSER_SRC_PARSER_H_
#define PARSER_SRC_PARSER_H_

#include <string>
#include <vector>

#include "tree.h"

namespace SimpleParser {

double calculate(std::string);
std::string exportTree(std::string);

namespace {
	int8_t getPriority(char);
	std::vector<std::string> lexer(std::string);
	Node* buildTree(Tree*, std::string);
}

}

#endif  // PARSER_SRC_PARSER_H_