summaryrefslogtreecommitdiff
path: root/main.cpp
blob: 0d9519626b5f691802835e022fd341d0f4a23e40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <iterator>
#include <ostream>
#include <string>
#include <vector>
#include <iostream>
#include "include/parser.hpp"
#include "include/expressions.hpp"
#include "include/exceptions.hpp"

using std::string, std::cin, std::cout, std::getline, std::vector,
  std::begin, std::end, std::endl;

int main(){
  string input;
  Parser parser;

  getline(cin, input);

  //try {
  Expression *tree = parser.parse(input);
  cout << tree->getRepr() << endl;
    //} catch(const ParserException &e) {
    //cout << e.showMsg() << endl;
    //}
  delete tree;
  
  return 0;
}