Lines Matching refs:Lookahead
54 struct Lookahead
79 struct Lookahead lookahead[MAX_LOOKAHEAD + 1];
97 /* The nature of the lookahead buffer:
99 MAX_LOOKAHEAD lookahead tokens and a slot for the current token and value.
128 state->lookahead[i].type = getNextToken(state->buffer, &state->lookahead[i].value, &state->lookahead[i].line, &state->lookahead[i].comment, status);
144 ustr_deinit(&state->lookahead[i].value);
145 ustr_deinit(&state->lookahead[i].comment);
156 result = state->lookahead[state->lookaheadPosition].type;
160 *tokenValue = &state->lookahead[state->lookaheadPosition].value;
165 *linenumber = state->lookahead[state->lookaheadPosition].line;
170 ustr_cpy(comment, &(state->lookahead[state->lookaheadPosition].comment), status);
175 ustr_setlen(&state->lookahead[i].comment, 0, status);
176 ustr_setlen(&state->lookahead[i].value, 0, status);
177 state->lookahead[i].type = getNextToken(state->buffer, &state->lookahead[i].value, &state->lookahead[i].line, &state->lookahead[i].comment, status);
202 *tokenValue = &state->lookahead[i].value;
207 *linenumber = state->lookahead[i].line;
211 ustr_cpy(comment, &(state->lookahead[state->lookaheadPosition].comment), status);
214 return state->lookahead[i].type;
1933 work it out using the lookahead tokens. */
2057 ustr_init(&state.lookahead[i].value);
2058 ustr_init(&state.lookahead[i].comment);