From 6c4be9c23bbe2512a264d2d4f890d6655b96139b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 14 Apr 2008 16:44:41 +0000 Subject: [PATCH] improve diagnostics in call parsing, patch suggested by Matthijs Kooijman git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49648 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/tutorial/LangImpl2.html | 4 ++-- docs/tutorial/LangImpl3.html | 2 +- docs/tutorial/LangImpl4.html | 2 +- docs/tutorial/LangImpl5.html | 2 +- docs/tutorial/LangImpl6.html | 2 +- docs/tutorial/LangImpl7.html | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/tutorial/LangImpl2.html b/docs/tutorial/LangImpl2.html index 50619e09550..018d0be7603 100644 --- a/docs/tutorial/LangImpl2.html +++ b/docs/tutorial/LangImpl2.html @@ -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(); } } diff --git a/docs/tutorial/LangImpl3.html b/docs/tutorial/LangImpl3.html index 28b9dac3524..47e178397a8 100644 --- a/docs/tutorial/LangImpl3.html +++ b/docs/tutorial/LangImpl3.html @@ -881,7 +881,7 @@ static ExprAST *ParseIdentifierExpr() { if (CurTok == ')') break; if (CurTok != ',') - return Error("Expected ')'"); + return Error("Expected ')' or ',' in argument list"); getNextToken(); } } diff --git a/docs/tutorial/LangImpl4.html b/docs/tutorial/LangImpl4.html index 41b58c76e03..999c194bf98 100644 --- a/docs/tutorial/LangImpl4.html +++ b/docs/tutorial/LangImpl4.html @@ -714,7 +714,7 @@ static ExprAST *ParseIdentifierExpr() { if (CurTok == ')') break; if (CurTok != ',') - return Error("Expected ')'"); + return Error("Expected ')' or ',' in argument list"); getNextToken(); } } diff --git a/docs/tutorial/LangImpl5.html b/docs/tutorial/LangImpl5.html index 8081fc3821a..ae53fd9f993 100644 --- a/docs/tutorial/LangImpl5.html +++ b/docs/tutorial/LangImpl5.html @@ -1137,7 +1137,7 @@ static ExprAST *ParseIdentifierExpr() { if (CurTok == ')') break; if (CurTok != ',') - return Error("Expected ')'"); + return Error("Expected ')' or ',' in argument list"); getNextToken(); } } diff --git a/docs/tutorial/LangImpl6.html b/docs/tutorial/LangImpl6.html index 1f159e0b56d..6059ad0e599 100644 --- a/docs/tutorial/LangImpl6.html +++ b/docs/tutorial/LangImpl6.html @@ -1085,7 +1085,7 @@ static ExprAST *ParseIdentifierExpr() { if (CurTok == ')') break; if (CurTok != ',') - return Error("Expected ')'"); + return Error("Expected ')' or ',' in argument list"); getNextToken(); } } diff --git a/docs/tutorial/LangImpl7.html b/docs/tutorial/LangImpl7.html index 6d82fa9dbdc..fc8f1302ff0 100644 --- a/docs/tutorial/LangImpl7.html +++ b/docs/tutorial/LangImpl7.html @@ -1286,7 +1286,7 @@ static ExprAST *ParseIdentifierExpr() { if (CurTok == ')') break; if (CurTok != ',') - return Error("Expected ')'"); + return Error("Expected ')' or ',' in argument list"); getNextToken(); } }