Lines Matching refs:token
64 /* keep in sync with token defines in read.h */
67 "string", /* A string token, such as "MonthNames" */
101 MAX_LOOKAHEAD lookahead tokens and a slot for the current token and value.
103 old slot is filled with the next token from the reader by calling getNextToken.
104 The token values are stored in the slot, which means that token values don't
224 enum ETokenType token = getToken(state, tokenValue, comment, &line, status);
236 if (token != expectedToken)
239 error(line, "expecting %s, got %s", tokenNames[expectedToken], tokenNames[token]);
810 enum ETokenType token;
822 token = getToken(state, &tokenValue, &comment, &line, status);
824 if (token == TOK_CLOSE_BRACE)
829 if (token != TOK_STRING)
834 if (token == TOK_EOF)
840 error(line, "Unexpected token %s", tokenNames[token]);
1013 enum ETokenType token;
1032 token = getToken(state, &tokenValue, &comment, &line, status);
1034 if (token == TOK_CLOSE_BRACE)
1039 if (token != TOK_STRING)
1044 if (token == TOK_EOF)
1050 error(line, "Unexpected token %s", tokenNames[token]);
1078 token = peekToken(state, 0, &tokenValue, &line, &comment, status);
1082 if(token == TOK_OPEN_BRACE) {
1083 token = getToken(state, &tokenValue, &comment, &line, status);
1089 } else if(token == TOK_COLON) { /* right now, we'll just try to see if we have aliases */
1091 token = peekToken(state, 1, &tokenValue, &line, &comment, status);
1136 enum ETokenType token;
1148 token = getToken(state, &tokenValue, &comment, &line, status);
1150 if (token == TOK_CLOSE_BRACE)
1158 if (token != TOK_STRING)
1162 if (token == TOK_EOF)
1168 error(line, "unexpected token %s", tokenNames[token]);
1247 enum ETokenType token;
1268 /* check for end of array, but don't consume next token unless it really is the end */
1269 token = peekToken(state, 0, &tokenValue, NULL, &memberComments, status);
1272 if (token == TOK_CLOSE_BRACE)
1281 if (token == TOK_EOF)
1290 if (token == TOK_STRING)
1315 token = peekToken(state, 0, NULL, NULL, NULL, status);
1317 if (token == TOK_COMMA)
1338 enum ETokenType token;
1362 /* check for end of array, but don't consume next token unless it really is the end */
1363 token = peekToken(state, 0, NULL, NULL,&memberComments, status);
1365 if (token == TOK_CLOSE_BRACE)
1392 token = peekToken(state, 0, NULL, NULL, NULL, status);
1408 if (token == TOK_COMMA)
1895 enum ETokenType token;
1902 token = getToken(state, &tokenValue, NULL, &startline, status);
1912 switch (token)
1957 token = peekToken(state, 0, NULL, &line, NULL,status);
1964 if (token == TOK_OPEN_BRACE || token == TOK_COLON ||token ==TOK_CLOSE_BRACE )
1968 else if (token == TOK_STRING)
1970 token = peekToken(state, 1, NULL, &line, NULL, status);
1977 switch (token)
1985 error(line, "Unexpected token after string, expected ',', '{' or '}'");
1992 error(line, "Unexpected token after '{'");
2025 enum ETokenType token;
2057 token = getToken(&state, NULL, NULL, &line, status);
2058 if(token==TOK_COLON) {
2077 if(token==TOK_OPEN_BRACE)