aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cc
blob: 4106fc05d6fe0dc44e936d7daee81bf4e15c2c9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "parser.h"

namespace SimpleParser {

double calculate(std::string term) {
	return Tree(term).solve();
}

double calculate(std::string term, const ConstantMap* constants) {
	return Tree(term, constants).solve();
}

std::string print(std::string term) {
	return Tree(term).print();
}

std::string print(std::string term, const ConstantMap* constants) {
	return Tree(term, constants).print();
}

}