Added the name of the file to the error report.
[repair.git] / Repair / RepairCompiler / MCC / MDL.cup
index b8a2ad16e16e96205ba9c2a63e6347ad1ce67b2f..0a3aa0975b37d95b206f2c023e7db0178c02ae69 100755 (executable)
@@ -63,9 +63,8 @@ parser code {:
 
                CUP$MDLParser$actions.errors = true;
                Symbol symbol = (Symbol) current;
-               report_error(filename+": Syntax error at line " +
-(symbol.line + 1) + ", column " + LineCount.getColumn(symbol.left) +
-": " + current.value, current);
+               report_error(filename+":"+(symbol.line+1)+": Syntax error at column " + LineCount.getColumn(symbol.left) +": " + current.value, current);
+               System.exit(0);
        }
 
        public void report_fatal_error (String message, Object info) {