Don't need "Did you mean literal(...)?" anymore.
authorcristic <cristic>
Thu, 29 Apr 2004 20:05:08 +0000 (20:05 +0000)
committercristic <cristic>
Thu, 29 Apr 2004 20:05:08 +0000 (20:05 +0000)
Repair/RepairCompiler/MCC/CDL.cup
Repair/RepairCompiler/MCC/MDL.cup

index 45c0e3f..4206e84 100755 (executable)
@@ -72,8 +72,10 @@ parser code {:
                 report_error(filename+":"+(symbol.line+1)+": Syntax error at column " 
                 + (LineCount.getColumn(symbol.left)+1) +": " + current.value, current);
 
                 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 (current.value.equals("true") || isInteger)
                   System.out.println("Did you mean literal("+current.value+")?");
+               */
 
                System.out.println();
                System.exit(0);
 
                System.out.println();
                System.exit(0);
index 4d2e02a..8c5e14f 100755 (executable)
@@ -75,8 +75,10 @@ parser code {:
                 report_error(filename+":"+(symbol.line+1)+": Syntax error at column " 
                 + (LineCount.getColumn(symbol.left)+1) +": " + current.value, current);
 
                 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 (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?");    
               
                        if (LineCount.getColumn(symbol.left) == 0)      
                   System.out.println("Did you forget a semicolon on the previous line?");