Lines Matching refs:CurTok
411 static int CurTok; variable
412 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
420 if (!isascii(CurTok)) in GetTokPrecedence()
424 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
457 if (CurTok != ')') in ParseParenExpr()
473 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
479 if (CurTok != ')') { in ParseIdentifierExpr()
486 if (CurTok == ')') in ParseIdentifierExpr()
489 if (CurTok != ',') in ParseIdentifierExpr()
512 if (CurTok != tok_then) in ParseIfExpr()
520 if (CurTok != tok_else) in ParseIfExpr()
537 if (CurTok != tok_identifier) in ParseForExpr()
543 if (CurTok != '=') in ParseForExpr()
550 if (CurTok != ',') in ParseForExpr()
560 if (CurTok == ',') { in ParseForExpr()
567 if (CurTok != tok_in) in ParseForExpr()
587 if (CurTok != tok_identifier) in ParseVarExpr()
596 if (CurTok == '=') { in ParseVarExpr()
607 if (CurTok != ',') in ParseVarExpr()
611 if (CurTok != tok_identifier) in ParseVarExpr()
616 if (CurTok != tok_in) in ParseVarExpr()
635 switch (CurTok) { in ParsePrimary()
658 if (!isascii(CurTok) || CurTok == '(' || CurTok == ',') in ParseUnary()
662 int Opc = CurTok; in ParseUnary()
683 int BinOp = CurTok; in ParseBinOpRHS()
730 switch (CurTok) { in ParsePrototype()
740 if (!isascii(CurTok)) in ParsePrototype()
743 FnName += (char)CurTok; in ParsePrototype()
749 if (!isascii(CurTok)) in ParsePrototype()
752 FnName += (char)CurTok; in ParsePrototype()
757 if (CurTok == tok_number) { in ParsePrototype()
766 if (CurTok != '(') in ParsePrototype()
772 if (CurTok != ')') in ParsePrototype()
1369 switch (CurTok) { in MainLoop()