mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
spell identifier correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43718 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -294,12 +294,12 @@ calls:</p>
|
|||||||
<div class="doc_code">
|
<div class="doc_code">
|
||||||
<pre>
|
<pre>
|
||||||
/// identifierexpr
|
/// identifierexpr
|
||||||
/// ::= identifer
|
/// ::= identifier
|
||||||
/// ::= identifer '(' expression* ')'
|
/// ::= identifier '(' expression* ')'
|
||||||
static ExprAST *ParseIdentifierExpr() {
|
static ExprAST *ParseIdentifierExpr() {
|
||||||
std::string IdName = IdentifierStr;
|
std::string IdName = IdentifierStr;
|
||||||
|
|
||||||
getNextToken(); // eat identifer.
|
getNextToken(); // eat identifier.
|
||||||
|
|
||||||
if (CurTok != '(') // Simple variable ref.
|
if (CurTok != '(') // Simple variable ref.
|
||||||
return new VariableExprAST(IdName);
|
return new VariableExprAST(IdName);
|
||||||
@ -954,12 +954,12 @@ FunctionAST *ErrorF(const char *Str) { Error(Str); return 0; }
|
|||||||
static ExprAST *ParseExpression();
|
static ExprAST *ParseExpression();
|
||||||
|
|
||||||
/// identifierexpr
|
/// identifierexpr
|
||||||
/// ::= identifer
|
/// ::= identifier
|
||||||
/// ::= identifer '(' expression* ')'
|
/// ::= identifier '(' expression* ')'
|
||||||
static ExprAST *ParseIdentifierExpr() {
|
static ExprAST *ParseIdentifierExpr() {
|
||||||
std::string IdName = IdentifierStr;
|
std::string IdName = IdentifierStr;
|
||||||
|
|
||||||
getNextToken(); // eat identifer.
|
getNextToken(); // eat identifier.
|
||||||
|
|
||||||
if (CurTok != '(') // Simple variable ref.
|
if (CurTok != '(') // Simple variable ref.
|
||||||
return new VariableExprAST(IdName);
|
return new VariableExprAST(IdName);
|
||||||
|
@ -818,12 +818,12 @@ FunctionAST *ErrorF(const char *Str) { Error(Str); return 0; }
|
|||||||
static ExprAST *ParseExpression();
|
static ExprAST *ParseExpression();
|
||||||
|
|
||||||
/// identifierexpr
|
/// identifierexpr
|
||||||
/// ::= identifer
|
/// ::= identifier
|
||||||
/// ::= identifer '(' expression* ')'
|
/// ::= identifier '(' expression* ')'
|
||||||
static ExprAST *ParseIdentifierExpr() {
|
static ExprAST *ParseIdentifierExpr() {
|
||||||
std::string IdName = IdentifierStr;
|
std::string IdName = IdentifierStr;
|
||||||
|
|
||||||
getNextToken(); // eat identifer.
|
getNextToken(); // eat identifier.
|
||||||
|
|
||||||
if (CurTok != '(') // Simple variable ref.
|
if (CurTok != '(') // Simple variable ref.
|
||||||
return new VariableExprAST(IdName);
|
return new VariableExprAST(IdName);
|
||||||
|
@ -686,12 +686,12 @@ FunctionAST *ErrorF(const char *Str) { Error(Str); return 0; }
|
|||||||
static ExprAST *ParseExpression();
|
static ExprAST *ParseExpression();
|
||||||
|
|
||||||
/// identifierexpr
|
/// identifierexpr
|
||||||
/// ::= identifer
|
/// ::= identifier
|
||||||
/// ::= identifer '(' expression* ')'
|
/// ::= identifier '(' expression* ')'
|
||||||
static ExprAST *ParseIdentifierExpr() {
|
static ExprAST *ParseIdentifierExpr() {
|
||||||
std::string IdName = IdentifierStr;
|
std::string IdName = IdentifierStr;
|
||||||
|
|
||||||
getNextToken(); // eat identifer.
|
getNextToken(); // eat identifier.
|
||||||
|
|
||||||
if (CurTok != '(') // Simple variable ref.
|
if (CurTok != '(') // Simple variable ref.
|
||||||
return new VariableExprAST(IdName);
|
return new VariableExprAST(IdName);
|
||||||
|
@ -574,7 +574,7 @@ the AST node:</p>
|
|||||||
|
|
||||||
<div class="doc_code">
|
<div class="doc_code">
|
||||||
<pre>
|
<pre>
|
||||||
/// forexpr ::= 'for' identifer '=' expr ',' expr (',' expr)? 'in' expression
|
/// forexpr ::= 'for' identifier '=' expr ',' expr (',' expr)? 'in' expression
|
||||||
static ExprAST *ParseForExpr() {
|
static ExprAST *ParseForExpr() {
|
||||||
getNextToken(); // eat the for.
|
getNextToken(); // eat the for.
|
||||||
|
|
||||||
@ -582,7 +582,7 @@ static ExprAST *ParseForExpr() {
|
|||||||
return Error("expected identifier after for");
|
return Error("expected identifier after for");
|
||||||
|
|
||||||
std::string IdName = IdentifierStr;
|
std::string IdName = IdentifierStr;
|
||||||
getNextToken(); // eat identifer.
|
getNextToken(); // eat identifier.
|
||||||
|
|
||||||
if (CurTok != '=')
|
if (CurTok != '=')
|
||||||
return Error("expected '=' after for");
|
return Error("expected '=' after for");
|
||||||
@ -1085,12 +1085,12 @@ FunctionAST *ErrorF(const char *Str) { Error(Str); return 0; }
|
|||||||
static ExprAST *ParseExpression();
|
static ExprAST *ParseExpression();
|
||||||
|
|
||||||
/// identifierexpr
|
/// identifierexpr
|
||||||
/// ::= identifer
|
/// ::= identifier
|
||||||
/// ::= identifer '(' expression* ')'
|
/// ::= identifier '(' expression* ')'
|
||||||
static ExprAST *ParseIdentifierExpr() {
|
static ExprAST *ParseIdentifierExpr() {
|
||||||
std::string IdName = IdentifierStr;
|
std::string IdName = IdentifierStr;
|
||||||
|
|
||||||
getNextToken(); // eat identifer.
|
getNextToken(); // eat identifier.
|
||||||
|
|
||||||
if (CurTok != '(') // Simple variable ref.
|
if (CurTok != '(') // Simple variable ref.
|
||||||
return new VariableExprAST(IdName);
|
return new VariableExprAST(IdName);
|
||||||
@ -1163,7 +1163,7 @@ static ExprAST *ParseIfExpr() {
|
|||||||
return new IfExprAST(Cond, Then, Else);
|
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() {
|
static ExprAST *ParseForExpr() {
|
||||||
getNextToken(); // eat the for.
|
getNextToken(); // eat the for.
|
||||||
|
|
||||||
@ -1171,7 +1171,7 @@ static ExprAST *ParseForExpr() {
|
|||||||
return Error("expected identifier after for");
|
return Error("expected identifier after for");
|
||||||
|
|
||||||
std::string IdName = IdentifierStr;
|
std::string IdName = IdentifierStr;
|
||||||
getNextToken(); // eat identifer.
|
getNextToken(); // eat identifier.
|
||||||
|
|
||||||
if (CurTok != '=')
|
if (CurTok != '=')
|
||||||
return Error("expected '=' after for");
|
return Error("expected '=' after for");
|
||||||
|
@ -1048,12 +1048,12 @@ FunctionAST *ErrorF(const char *Str) { Error(Str); return 0; }
|
|||||||
static ExprAST *ParseExpression();
|
static ExprAST *ParseExpression();
|
||||||
|
|
||||||
/// identifierexpr
|
/// identifierexpr
|
||||||
/// ::= identifer
|
/// ::= identifier
|
||||||
/// ::= identifer '(' expression* ')'
|
/// ::= identifier '(' expression* ')'
|
||||||
static ExprAST *ParseIdentifierExpr() {
|
static ExprAST *ParseIdentifierExpr() {
|
||||||
std::string IdName = IdentifierStr;
|
std::string IdName = IdentifierStr;
|
||||||
|
|
||||||
getNextToken(); // eat identifer.
|
getNextToken(); // eat identifier.
|
||||||
|
|
||||||
if (CurTok != '(') // Simple variable ref.
|
if (CurTok != '(') // Simple variable ref.
|
||||||
return new VariableExprAST(IdName);
|
return new VariableExprAST(IdName);
|
||||||
@ -1126,7 +1126,7 @@ static ExprAST *ParseIfExpr() {
|
|||||||
return new IfExprAST(Cond, Then, Else);
|
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() {
|
static ExprAST *ParseForExpr() {
|
||||||
getNextToken(); // eat the for.
|
getNextToken(); // eat the for.
|
||||||
|
|
||||||
@ -1134,7 +1134,7 @@ static ExprAST *ParseForExpr() {
|
|||||||
return Error("expected identifier after for");
|
return Error("expected identifier after for");
|
||||||
|
|
||||||
std::string IdName = IdentifierStr;
|
std::string IdName = IdentifierStr;
|
||||||
getNextToken(); // eat identifer.
|
getNextToken(); // eat identifier.
|
||||||
|
|
||||||
if (CurTok != '=')
|
if (CurTok != '=')
|
||||||
return Error("expected '=' after for");
|
return Error("expected '=' after for");
|
||||||
|
@ -809,8 +809,8 @@ static ExprAST *ParsePrimary() {
|
|||||||
|
|
||||||
<div class="doc_code">
|
<div class="doc_code">
|
||||||
<pre>
|
<pre>
|
||||||
/// varexpr ::= 'var' identifer ('=' expression)?
|
/// varexpr ::= 'var' identifier ('=' expression)?
|
||||||
// (',' identifer ('=' expression)?)* 'in' expression
|
// (',' identifier ('=' expression)?)* 'in' expression
|
||||||
static ExprAST *ParseVarExpr() {
|
static ExprAST *ParseVarExpr() {
|
||||||
getNextToken(); // eat the var.
|
getNextToken(); // eat the var.
|
||||||
|
|
||||||
@ -829,7 +829,7 @@ local <tt>VarNames</tt> vector.
|
|||||||
<pre>
|
<pre>
|
||||||
while (1) {
|
while (1) {
|
||||||
std::string Name = IdentifierStr;
|
std::string Name = IdentifierStr;
|
||||||
getNextToken(); // eat identifer.
|
getNextToken(); // eat identifier.
|
||||||
|
|
||||||
// Read the optional initializer.
|
// Read the optional initializer.
|
||||||
ExprAST *Init = 0;
|
ExprAST *Init = 0;
|
||||||
@ -1244,12 +1244,12 @@ FunctionAST *ErrorF(const char *Str) { Error(Str); return 0; }
|
|||||||
static ExprAST *ParseExpression();
|
static ExprAST *ParseExpression();
|
||||||
|
|
||||||
/// identifierexpr
|
/// identifierexpr
|
||||||
/// ::= identifer
|
/// ::= identifier
|
||||||
/// ::= identifer '(' expression* ')'
|
/// ::= identifier '(' expression* ')'
|
||||||
static ExprAST *ParseIdentifierExpr() {
|
static ExprAST *ParseIdentifierExpr() {
|
||||||
std::string IdName = IdentifierStr;
|
std::string IdName = IdentifierStr;
|
||||||
|
|
||||||
getNextToken(); // eat identifer.
|
getNextToken(); // eat identifier.
|
||||||
|
|
||||||
if (CurTok != '(') // Simple variable ref.
|
if (CurTok != '(') // Simple variable ref.
|
||||||
return new VariableExprAST(IdName);
|
return new VariableExprAST(IdName);
|
||||||
@ -1322,7 +1322,7 @@ static ExprAST *ParseIfExpr() {
|
|||||||
return new IfExprAST(Cond, Then, Else);
|
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() {
|
static ExprAST *ParseForExpr() {
|
||||||
getNextToken(); // eat the for.
|
getNextToken(); // eat the for.
|
||||||
|
|
||||||
@ -1330,7 +1330,7 @@ static ExprAST *ParseForExpr() {
|
|||||||
return Error("expected identifier after for");
|
return Error("expected identifier after for");
|
||||||
|
|
||||||
std::string IdName = IdentifierStr;
|
std::string IdName = IdentifierStr;
|
||||||
getNextToken(); // eat identifer.
|
getNextToken(); // eat identifier.
|
||||||
|
|
||||||
if (CurTok != '=')
|
if (CurTok != '=')
|
||||||
return Error("expected '=' after for");
|
return Error("expected '=' after for");
|
||||||
@ -1364,8 +1364,8 @@ static ExprAST *ParseForExpr() {
|
|||||||
return new ForExprAST(IdName, Start, End, Step, Body);
|
return new ForExprAST(IdName, Start, End, Step, Body);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// varexpr ::= 'var' identifer ('=' expression)?
|
/// varexpr ::= 'var' identifier ('=' expression)?
|
||||||
// (',' identifer ('=' expression)?)* 'in' expression
|
// (',' identifier ('=' expression)?)* 'in' expression
|
||||||
static ExprAST *ParseVarExpr() {
|
static ExprAST *ParseVarExpr() {
|
||||||
getNextToken(); // eat the var.
|
getNextToken(); // eat the var.
|
||||||
|
|
||||||
@ -1377,7 +1377,7 @@ static ExprAST *ParseVarExpr() {
|
|||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
std::string Name = IdentifierStr;
|
std::string Name = IdentifierStr;
|
||||||
getNextToken(); // eat identifer.
|
getNextToken(); // eat identifier.
|
||||||
|
|
||||||
// Read the optional initializer.
|
// Read the optional initializer.
|
||||||
ExprAST *Init = 0;
|
ExprAST *Init = 0;
|
||||||
|
Reference in New Issue
Block a user