Adjust exit codes

This commit is contained in:
SirYwell 2025-05-05 22:36:46 +02:00
parent 6af6d2ca15
commit ce6506cb88
No known key found for this signature in database

View file

@ -32,7 +32,7 @@ public class Main {
new SemanticAnalysis(program).analyze(); new SemanticAnalysis(program).analyze();
} catch (SemanticException e) { } catch (SemanticException e) {
e.printStackTrace(); e.printStackTrace();
System.exit(2); System.exit(7);
return; return;
} }
List<IrGraph> graphs = new ArrayList<>(); List<IrGraph> graphs = new ArrayList<>();
@ -54,7 +54,7 @@ public class Main {
return parser.parseProgram(); return parser.parseProgram();
} catch (ParseException e) { } catch (ParseException e) {
e.printStackTrace(); e.printStackTrace();
System.exit(1); System.exit(42);
throw new AssertionError("unreachable"); throw new AssertionError("unreachable");
} }
} }