diff options
Diffstat (limited to 'src/parser.h')
-rw-r--r-- | src/parser.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/parser.h b/src/parser.h index 677717a..a27d1c0 100644 --- a/src/parser.h +++ b/src/parser.h @@ -8,13 +8,12 @@ namespace SimpleParser { -double calculate(std::string); -std::string exportTree(std::string); +double calculate(std::string term) { + return Tree(term).solve(); +} -namespace { - int8_t getPriority(char); - std::vector<std::string> lexer(std::string); - Node* buildTree(Tree*, std::string); +std::string exportTree(std::string term) { + return Tree(term).print(); } } |