aboutsummaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/main.cc b/main.cc
index c03cce2..3378e14 100644
--- a/main.cc
+++ b/main.cc
@@ -7,15 +7,13 @@ int main()
{
std::string inputTerm;
- std::cin >> inputTerm; // Example: 2.5*(2+3-(3/2+1))
-
- SimpleParser::Parser parser;
+ std::cin >> inputTerm;
try {
typedef std::numeric_limits<double> dbl;
std::cout.precision(dbl::digits10);
- std::cout << parser.calculate(inputTerm) << std::endl;
+ std::cout << SimpleParser::calculate(inputTerm) << std::endl;
}
catch ( std::exception &e )
{