mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +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">
|
||||
<pre>
|
||||
/// 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);
|
||||
@ -954,12 +954,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);
|
||||
|
Reference in New Issue
Block a user