Skip to content
Snippets Groups Projects
Commit 45b4410a authored by ZaynouneFatimaZahrae's avatar ZaynouneFatimaZahrae
Browse files

Merge remote-tracking branch 'origin/main'

parents b20ae2bf ea6754cf
Branches
No related tags found
No related merge requests found
...@@ -105,6 +105,8 @@ public class Compiler ...@@ -105,6 +105,8 @@ public class Compiler
scRoot.apply(sc2sa); scRoot.apply(sc2sa);
saRoot = sc2sa.getRoot(); saRoot = sc2sa.getRoot();
} catch (Exception ignored) { } catch (Exception ignored) {
System.out.println("exception construction arbre abstrait");
ignored.printStackTrace();
} }
PrintStream out = System.out; PrintStream out = System.out;
if (verboseLevel > 1) { if (verboseLevel > 1) {
...@@ -133,7 +135,8 @@ public class Compiler ...@@ -133,7 +135,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