summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/main.cpp b/main.cpp
index 12ee839..a7e81bb 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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;
}