34static char sccsid[] =
"@(#)lexi.c 8.1 (Berkeley) 6/6/93";
123 0, 0, 0, 0, 0, 0, 0, 0,
124 0, 0, 0, 0, 0, 0, 0, 0,
125 0, 0, 0, 0, 0, 0, 0, 0,
126 0, 0, 0, 0, 0, 0, 0, 0,
127 0, 3, 0, 0, 1, 3, 3, 0,
128 0, 0, 3, 3, 0, 3, 0, 3,
129 1, 1, 1, 1, 1, 1, 1, 1,
130 1, 1, 0, 0, 3, 3, 3, 3,
131 0, 1, 1, 1, 1, 1, 1, 1,
132 1, 1, 1, 1, 1, 1, 1, 1,
133 1, 1, 1, 1, 1, 1, 1, 1,
134 1, 1, 1, 0, 0, 0, 3, 1,
135 0, 1, 1, 1, 1, 1, 1, 1,
136 1, 1, 1, 1, 1, 1, 1, 1,
137 1, 1, 1, 1, 1, 1, 1, 1,
138 1, 1, 1, 0, 3, 0, 3, 0
144 return (
strcmp(
e1, *(
const char *
const *)
e2));
182 if (
lastc ==
'*' &&
c ==
'/')
189 }
else if (
lastc ==
'/' &&
c ==
'/')
202 }
else if (paren_depth == 0) {
206 else if (
c ==
';' ||
c ==
',')
228 state->last_nl =
false;
231 state->col_1 =
false;
270 diag2(1,
"Unterminated literal");
344 state->last_u_d =
true;
366 state->last_u_d =
true;
371 state->last_u_d =
true;
382 if (
state->p_l_follow) {
392 if (
state->p_l_follow)
414 state->in_parameter_declaration == 0 &&
state->block_init == 0) {
418 state->in_parameter_declaration = 1;
427 else if (!
state->p_l_follow && !
state->block_init &&
434 state->last_u_d =
true;
439 state->last_u_d =
true;
455 state->last_nl =
true;
470 diag2(1,
"Unterminated literal");
543 state->last_nl =
true;
581 state->want_blank =
false;
588 state->block_init = 1;
625 if (!
state->last_u_d) {
void err(int eval, const char *fmt,...)
void diag2(int, const char *)
void lookahead_reset(void)
#define CHECK_SIZE_TOKEN(desired_size)
void add_typename(const char *key)
static int strcmp_type(const void *e1, const void *e2)
int lexi(struct parser_state *state)
void alloc_typenames(void)
static int is_func_definition(char *tp)