blob: 12ee839f090eafd6095cc84ad1db6a24d0d77878 (
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/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
{
parser.parse(input);
cout << "Todo correcto." << endl;
}catch(ParserException e)
{
cout << e.showMsg() << endl;
}
return 0;
}
|