summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2022-04-02 12:27:43 -0600
committerHombreLaser <sebastian-440@live.com>2022-04-02 12:27:43 -0600
commit98342425bde17b9b236f8226e466d7e604371720 (patch)
tree214da01f6534d08ba1e76f044843f00bc7e79ac2 /main.cpp
parentbbf4e8304b50b6a972cacc6337d1aa283ccb83be (diff)
Corregido error de paréntesis derecho.
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;
}