aboutsummaryrefslogtreecommitdiff
path: root/src/parser.h
blob: a27d1c0b49b33ff53af4c3f9ac811b5f4f09bb75 (plain)
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_