diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -19,10 +19,15 @@ int main(){ { parser.parse(input); cout << "Todo correcto." << endl; - }catch(ParserException e) - { - cout << e.showMsg() << endl; - } + } + catch(ParserException e) + { + cout << e.showMsg() << endl; + } + catch(LexerException e) + { + cout << e.showMsg() << endl; + } return 0; } |