improve diagnostics in call parsing, patch suggested by
authorChris Lattner <sabre@nondot.org>
Mon, 14 Apr 2008 16:44:41 +0000 (16:44 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 14 Apr 2008 16:44:41 +0000 (16:44 +0000)
Matthijs Kooijman

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49648 91177308-0d34-0410-b5e6-96231b3b80d8

docs/tutorial/LangImpl2.html
docs/tutorial/LangImpl3.html
docs/tutorial/LangImpl4.html
docs/tutorial/LangImpl5.html
docs/tutorial/LangImpl6.html
docs/tutorial/LangImpl7.html

index 50619e095502382959262f5dce1ecb24ae8b2174..018d0be76032fcac56a4e1cfd7a84d0d13f6faa2 100644 (file)
@@ -337,7 +337,7 @@ static ExprAST *ParseIdentifierExpr() {
       if (CurTok == ')') break;
     
       if (CurTok != ',')
-        return Error("Expected ')'");
+        return Error("Expected ')' or ',' in argument list");
       getNextToken();
     }
   }
@@ -1007,7 +1007,7 @@ static ExprAST *ParseIdentifierExpr() {
       if (CurTok == ')') break;
     
       if (CurTok != ',')
-        return Error("Expected ')'");
+        return Error("Expected ')' or ',' in argument list");
       getNextToken();
     }
   }
index 28b9dac3524bf937d2166b9f76a0cd6ae3e21642..47e178397a876a9a086e08ab86fa38d57f26f5db 100644 (file)
@@ -881,7 +881,7 @@ static ExprAST *ParseIdentifierExpr() {
       if (CurTok == ')') break;
     
       if (CurTok != ',')
-        return Error("Expected ')'");
+        return Error("Expected ')' or ',' in argument list");
       getNextToken();
     }
   }
index 41b58c76e0397392478c1a017b465a819e3ae98f..999c194bf98622f77e382d72152a178e1262de5a 100644 (file)
@@ -714,7 +714,7 @@ static ExprAST *ParseIdentifierExpr() {
       if (CurTok == ')') break;
     
       if (CurTok != ',')
-        return Error("Expected ')'");
+        return Error("Expected ')' or ',' in argument list");
       getNextToken();
     }
   }
index 8081fc3821af1693b36f2d6c70b0a162944694fb..ae53fd9f993f5ca2d9bc7612a8e95f34c5be51ad 100644 (file)
@@ -1137,7 +1137,7 @@ static ExprAST *ParseIdentifierExpr() {
       if (CurTok == ')') break;
       
       if (CurTok != ',')
-        return Error("Expected ')'");
+        return Error("Expected ')' or ',' in argument list");
       getNextToken();
     }
   }
index 1f159e0b56d51fd88b38e2a76abee653af17e1ff..6059ad0e5990340dbce829aba70b5a665b950dac 100644 (file)
@@ -1085,7 +1085,7 @@ static ExprAST *ParseIdentifierExpr() {
       if (CurTok == ')') break;
       
       if (CurTok != ',')
-        return Error("Expected ')'");
+        return Error("Expected ')' or ',' in argument list");
       getNextToken();
     }
   }
index 6d82fa9dbdc6d1334d339bda7d2ed891c20dd270..fc8f1302ff0c18472f76f66958ff8cdd4fdbf5ec 100644 (file)
@@ -1286,7 +1286,7 @@ static ExprAST *ParseIdentifierExpr() {
       if (CurTok == ')') break;
       
       if (CurTok != ',')
-        return Error("Expected ')'");
+        return Error("Expected ')' or ',' in argument list");
       getNextToken();
     }
   }