OK, the parser now looks more decent.
[repair.git] / Repair / RepairCompiler / MCC / SDL.cup
index ee5172cba3e07342d01cac27efd37297c0626fbd..9792ebd120d10047c3c2d14a0ed13ea85c042530 100755 (executable)
@@ -62,9 +62,12 @@ parser code {:
        public void syntax_error (java_cup.runtime.Symbol current) {
 
                CUP$SDLParser$actions.errors = true;
        public void syntax_error (java_cup.runtime.Symbol current) {
 
                CUP$SDLParser$actions.errors = true;
-               Symbol symbol = (Symbol) current;
-               report_error("TDL: Syntax error at line " + (symbol.line + 1)
-               + ", column " + LineCount.getColumn(symbol.left) + ": " + current.value, current);
+               Symbol symbol = (Symbol) current;               
+
+               report_error(filename+":"+(symbol.line+1)+": Syntax error at column " 
+                + (LineCount.getColumn(symbol.left)+1) +": " + current.value, current);
+
+               System.out.println();
                System.exit(0);
        }
 
                System.exit(0);
        }