From 4a32f1465aafdcf1e315d59e7e7a49078fb4354e Mon Sep 17 00:00:00 2001 From: cristic Date: Thu, 29 Apr 2004 20:05:08 +0000 Subject: [PATCH] Don't need "Did you mean literal(...)?" anymore. --- Repair/RepairCompiler/MCC/CDL.cup | 2 ++ Repair/RepairCompiler/MCC/MDL.cup | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Repair/RepairCompiler/MCC/CDL.cup b/Repair/RepairCompiler/MCC/CDL.cup index 45c0e3f..4206e84 100755 --- a/Repair/RepairCompiler/MCC/CDL.cup +++ b/Repair/RepairCompiler/MCC/CDL.cup @@ -72,8 +72,10 @@ parser code {: report_error(filename+":"+(symbol.line+1)+": Syntax error at column " + (LineCount.getColumn(symbol.left)+1) +": " + current.value, current); + /* if (current.value.equals("true") || isInteger) System.out.println("Did you mean literal("+current.value+")?"); + */ System.out.println(); System.exit(0); diff --git a/Repair/RepairCompiler/MCC/MDL.cup b/Repair/RepairCompiler/MCC/MDL.cup index 4d2e02a..8c5e14f 100755 --- a/Repair/RepairCompiler/MCC/MDL.cup +++ b/Repair/RepairCompiler/MCC/MDL.cup @@ -75,8 +75,10 @@ parser code {: report_error(filename+":"+(symbol.line+1)+": Syntax error at column " + (LineCount.getColumn(symbol.left)+1) +": " + current.value, current); + /* if (current.value.equals("true") || isInteger) System.out.println("Did you mean literal("+current.value+")?"); + */ if (LineCount.getColumn(symbol.left) == 0) System.out.println("Did you forget a semicolon on the previous line?"); -- 2.34.1