Skip to content
Snippets Groups Projects
Commit 0e6314ed authored by Alexis Nasr's avatar Alexis Nasr
Browse files

traitement d'une exception dans SaEval et dans Compiler

parent b65e1980
Branches
No related tags found
No related merge requests found
...@@ -134,7 +134,8 @@ public class Compiler ...@@ -134,7 +134,8 @@ public class Compiler
System.err.print("ERREUR TABLE DES SYMBOLES : "); System.err.print("ERREUR TABLE DES SYMBOLES : ");
System.err.println(e.getMessage()); System.err.println(e.getMessage());
System.exit(e.getCode()); System.exit(e.getCode());
} catch (Exception ignored) { } catch (Exception e) {
e.printStackTrace();
} }
if (verboseLevel > 1) { if (verboseLevel > 1) {
System.out.println("[PRINT TS]"); System.out.println("[PRINT TS]");
......
...@@ -23,7 +23,9 @@ public class SaEval extends SaDepthFirstVisitor <TypeVal> { ...@@ -23,7 +23,9 @@ public class SaEval extends SaDepthFirstVisitor <TypeVal> {
try{ try{
appelMain.accept(this); appelMain.accept(this);
} catch(Exception e){} } catch(Exception e){
e.printStackTrace()
}
} }
public TypeVal getVar(SaVarSimple saVar){ public TypeVal getVar(SaVarSimple saVar){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment