diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/main.cpp b/main.cpp deleted file mode 100644 index 0342e28..0000000 --- a/main.cpp +++ /dev/null @@ -1,27 +0,0 @@ -#include <iostream> -#include <limits> - -#include "src/parser.h" - -int main(int argc, char *argv[]) -{ - std::string inputTerm; - - std::cin >> inputTerm; // Example: 2.5*(2+3-(3/2+1)) - - SimpleParser::Parser parser; - - try { - typedef std::numeric_limits<double> dbl; - std::cout.precision(dbl::digits10); - - std::cout << parser.calculate(inputTerm) << std::endl; - } - catch ( std::exception &e ) - { - std::cerr << e.what() << std::endl; - return 1; - } - - return 0; -} |