summaryrefslogtreecommitdiffstats
path: root/llvm/docs/tutorial/LangImpl7.html
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-11-05 17:54:34 +0000
committerChris Lattner <sabre@nondot.org>2007-11-05 17:54:34 +0000
commit9b2f7773acbb1a691fc2c29d80ab79cffa19ee88 (patch)
tree9c0985c9dfb30124317c12aba303f02a8ebf0466 /llvm/docs/tutorial/LangImpl7.html
parente02310d5e39f100532d0a14b726f6577d0848090 (diff)
downloadbcm5719-llvm-9b2f7773acbb1a691fc2c29d80ab79cffa19ee88.tar.gz
bcm5719-llvm-9b2f7773acbb1a691fc2c29d80ab79cffa19ee88.zip
spell identifier correctly.
llvm-svn: 43718
Diffstat (limited to 'llvm/docs/tutorial/LangImpl7.html')
-rw-r--r--llvm/docs/tutorial/LangImpl7.html22
1 files changed, 11 insertions, 11 deletions
diff --git a/llvm/docs/tutorial/LangImpl7.html b/llvm/docs/tutorial/LangImpl7.html
index b002f7a4519..07dd5c620f8 100644
--- a/llvm/docs/tutorial/LangImpl7.html
+++ b/llvm/docs/tutorial/LangImpl7.html
@@ -809,8 +809,8 @@ static ExprAST *ParsePrimary() {
<div class="doc_code">
<pre>
-/// varexpr ::= 'var' identifer ('=' expression)?
-// (',' identifer ('=' expression)?)* 'in' expression
+/// varexpr ::= 'var' identifier ('=' expression)?
+// (',' identifier ('=' expression)?)* 'in' expression
static ExprAST *ParseVarExpr() {
getNextToken(); // eat the var.
@@ -829,7 +829,7 @@ local <tt>VarNames</tt> vector.
<pre>
while (1) {
std::string Name = IdentifierStr;
- getNextToken(); // eat identifer.
+ getNextToken(); // eat identifier.
// Read the optional initializer.
ExprAST *Init = 0;
@@ -1244,12 +1244,12 @@ FunctionAST *ErrorF(const char *Str) { Error(Str); return 0; }
static ExprAST *ParseExpression();
/// identifierexpr
-/// ::= identifer
-/// ::= identifer '(' expression* ')'
+/// ::= identifier
+/// ::= identifier '(' expression* ')'
static ExprAST *ParseIdentifierExpr() {
std::string IdName = IdentifierStr;
- getNextToken(); // eat identifer.
+ getNextToken(); // eat identifier.
if (CurTok != '(') // Simple variable ref.
return new VariableExprAST(IdName);
@@ -1322,7 +1322,7 @@ static ExprAST *ParseIfExpr() {
return new IfExprAST(Cond, Then, Else);
}
-/// forexpr ::= 'for' identifer '=' expr ',' expr (',' expr)? 'in' expression
+/// forexpr ::= 'for' identifier '=' expr ',' expr (',' expr)? 'in' expression
static ExprAST *ParseForExpr() {
getNextToken(); // eat the for.
@@ -1330,7 +1330,7 @@ static ExprAST *ParseForExpr() {
return Error("expected identifier after for");
std::string IdName = IdentifierStr;
- getNextToken(); // eat identifer.
+ getNextToken(); // eat identifier.
if (CurTok != '=')
return Error("expected '=' after for");
@@ -1364,8 +1364,8 @@ static ExprAST *ParseForExpr() {
return new ForExprAST(IdName, Start, End, Step, Body);
}
-/// varexpr ::= 'var' identifer ('=' expression)?
-// (',' identifer ('=' expression)?)* 'in' expression
+/// varexpr ::= 'var' identifier ('=' expression)?
+// (',' identifier ('=' expression)?)* 'in' expression
static ExprAST *ParseVarExpr() {
getNextToken(); // eat the var.
@@ -1377,7 +1377,7 @@ static ExprAST *ParseVarExpr() {
while (1) {
std::string Name = IdentifierStr;
- getNextToken(); // eat identifer.
+ getNextToken(); // eat identifier.
// Read the optional initializer.
ExprAST *Init = 0;
OpenPOWER on IntegriCloud