X-Git-Url: http://plrg.eecs.uci.edu/git/?p=repair.git;a=blobdiff_plain;f=Repair%2FRepairCompiler%2FMCC%2FMDL.cup;h=b8a2ad16e16e96205ba9c2a63e6347ad1ce67b2f;hp=7014831781db21cc2748038f01058459147d429d;hb=b63f5f1f7c6292259d7e322f4b89b8cf43891f0d;hpb=823f6d6712d13972f637af57bac318023bd71e1e diff --git a/Repair/RepairCompiler/MCC/MDL.cup b/Repair/RepairCompiler/MCC/MDL.cup index 7014831..b8a2ad1 100755 --- a/Repair/RepairCompiler/MCC/MDL.cup +++ b/Repair/RepairCompiler/MCC/MDL.cup @@ -56,13 +56,16 @@ action code {: init with {: :} parser code {: + + public String filename; public void syntax_error (java_cup.runtime.Symbol current) { CUP$MDLParser$actions.errors = true; Symbol symbol = (Symbol) current; - report_error("MDL: Syntax error at line " + (symbol.line + 1) - + ", column " + LineCount.getColumn(symbol.left) + ": " + current.value, current); + report_error(filename+": Syntax error at line " + +(symbol.line + 1) + ", column " + LineCount.getColumn(symbol.left) + +": " + current.value, current); } public void report_fatal_error (String message, Object info) {