Lines Matching refs:CurTok
298 static int CurTok; variable
299 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
307 if (!isascii(CurTok)) in GetTokPrecedence()
311 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
344 if (CurTok != ')') in ParseParenExpr()
358 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
364 if (CurTok != ')') { in ParseIdentifierExpr()
371 if (CurTok == ')') in ParseIdentifierExpr()
374 if (CurTok != ',') in ParseIdentifierExpr()
395 if (CurTok != tok_then) in ParseIfExpr()
403 if (CurTok != tok_else) in ParseIfExpr()
420 if (CurTok != tok_identifier) in ParseForExpr()
426 if (CurTok != '=') in ParseForExpr()
433 if (CurTok != ',') in ParseForExpr()
443 if (CurTok == ',') { in ParseForExpr()
450 if (CurTok != tok_in) in ParseForExpr()
470 if (CurTok != tok_identifier) in ParseVarExpr()
479 if (CurTok == '=') { in ParseVarExpr()
490 if (CurTok != ',') in ParseVarExpr()
494 if (CurTok != tok_identifier) in ParseVarExpr()
499 if (CurTok != tok_in) in ParseVarExpr()
518 switch (CurTok) { in ParsePrimary()
541 if (!isascii(CurTok) || CurTok == '(' || CurTok == ',') in ParseUnary()
545 int Opc = CurTok; in ParseUnary()
566 int BinOp = CurTok; in ParseBinOpRHS()
610 switch (CurTok) { in ParsePrototype()
620 if (!isascii(CurTok)) in ParsePrototype()
623 FnName += (char)CurTok; in ParsePrototype()
629 if (!isascii(CurTok)) in ParsePrototype()
632 FnName += (char)CurTok; in ParsePrototype()
637 if (CurTok == tok_number) { in ParsePrototype()
646 if (CurTok != '(') in ParsePrototype()
652 if (CurTok != ')') in ParsePrototype()
1178 switch (CurTok) { in MainLoop()