#include #include #include #include #include #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; } catch(LexerException e) { cout << e.showMsg() << endl; } return 0; }