aboutsummaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
authorAdrian Kummerländer2013-09-27 18:02:33 +0200
committerAdrian Kummerländer2013-09-27 18:02:33 +0200
commitc04051c034a5de33ba25e3182191d854edbbb516 (patch)
tree4b2834c80e06775eac0c2a6e49d8a66c93978d71 /main.cc
parenta0f0c005a39ddaf693c7de84d6ab1c380a93dca2 (diff)
downloadSimpleParser-c04051c034a5de33ba25e3182191d854edbbb516.tar
SimpleParser-c04051c034a5de33ba25e3182191d854edbbb516.tar.gz
SimpleParser-c04051c034a5de33ba25e3182191d854edbbb516.tar.bz2
SimpleParser-c04051c034a5de33ba25e3182191d854edbbb516.tar.lz
SimpleParser-c04051c034a5de33ba25e3182191d854edbbb516.tar.xz
SimpleParser-c04051c034a5de33ba25e3182191d854edbbb516.tar.zst
SimpleParser-c04051c034a5de33ba25e3182191d854edbbb516.zip
Modified Makefile to generate shared library
* library is called libSimpleParser.so * parser was renamed to clc * test and clc are using the shared library
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc25
1 files changed, 0 insertions, 25 deletions
diff --git a/main.cc b/main.cc
deleted file mode 100644
index 3378e14..0000000
--- a/main.cc
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <iostream>
-#include <limits>
-
-#include "src/parser.h"
-
-int main()
-{
- std::string inputTerm;
-
- std::cin >> inputTerm;
-
- try {
- typedef std::numeric_limits<double> dbl;
- std::cout.precision(dbl::digits10);
-
- std::cout << SimpleParser::calculate(inputTerm) << std::endl;
- }
- catch ( std::exception &e )
- {
- std::cerr << e.what() << std::endl;
- return 1;
- }
-
- return 0;
-}