Lines Matching refs:state
51 void parse_error(struct parse_state *state, const char *fmt, ...)
57 snprintf(buf, 128, "%s: %d: ", state->filename, state->line);
68 int next_token(struct parse_state *state)
70 char *x = state->ptr;
73 if (state->nexttoken) {
74 int t = state->nexttoken;
75 state->nexttoken = 0;
82 state->ptr = x;
86 state->ptr = x;
96 state->ptr = x+1;
99 state->ptr = x;
108 state->ptr = x;
112 state->text = s = x;
124 state->nexttoken = T_NEWLINE;
133 state->ptr = x;
168 state->line++;