22 fprintf(stderr,
"%s: f - %s\n",
myname, msg);
29 fprintf(stderr,
"%s: f - out of space\n",
myname);
37 fprintf(stderr,
"%s: f - cannot open \"%s\"\n",
myname, filename);
44 fprintf(stderr,
"%s: e - line %d of \"%s\", unexpected end-of-file\n",
56 if (st_line == 0)
return;
57 for (s = st_line; *s !=
'\n'; ++s)
59 if (isprint(*s) || *s ==
'\t')
65 for (s = st_line; s < st_cptr; ++s)
82 fprintf(stderr,
"%s: e - line %d of \"%s\", syntax error\n",
94 fprintf(stderr,
"%s: e - line %d of \"%s\", unmatched /*\n",
106 fprintf(stderr,
"%s: e - line %d of \"%s\", unterminated string\n",
118 fprintf(stderr,
"%s: e - line %d of \"%s\", unmatched %%{\n",
130 fprintf(stderr,
"%s: e - line %d of \"%s\", unterminated %%union \
140 fprintf(stderr,
"%s: e - line %d of \"%s\", too many %%union \
152 fprintf(stderr,
"%s: e - line %d of \"%s\", illegal tag\n",
162 fprintf(stderr,
"%s: e - line %d of \"%s\", illegal character\n",
172 fprintf(stderr,
"%s: e - line %d of \"%s\", illegal use of reserved symbol \
181 fprintf(stderr,
"%s: e - line %d of \"%s\", the start symbol %s cannot be \
190 fprintf(stderr,
"%s: w - line %d of \"%s\", the type of %s has been \
198 fprintf(stderr,
"%s: w - line %d of \"%s\", the precedence of %s has been \
206 fprintf(stderr,
"%s: w - line %d of \"%s\", the value of %s has been \
214 fprintf(stderr,
"%s: e - line %d of \"%s\", the start symbol %s is a \
222 fprintf(stderr,
"%s: w - line %d of \"%s\", the start symbol has been \
229 fprintf(stderr,
"%s: e - line %d of \"%s\", no grammar has been \
238 fprintf(stderr,
"%s: e - line %d of \"%s\", a token appears on the lhs \
246 fprintf(stderr,
"%s: w - line %d of \"%s\", conflicting %%prec \
256 fprintf(stderr,
"%s: e - line %d of \"%s\", unterminated action\n",
267 fprintf(stderr,
"%s: w - line %d of \"%s\", $%d references beyond the \
277 fprintf(stderr,
"%s: e - line %d of \"%s\", illegal $-name\n",
286 fprintf(stderr,
"%s: e - line %d of \"%s\", $$ is untyped\n",
296 fprintf(stderr,
"%s: e - line %d of \"%s\", $%d (%s) is untyped\n",
305 fprintf(stderr,
"%s: e - line %d of \"%s\", $%d is untyped\n",
313 fprintf(stderr,
"%s: w - line %d of \"%s\", the default action assigns an \
321 fprintf(stderr,
"%s: e - the start symbol %s is undefined\n",
myname, s);
329 fprintf(stderr,
"%s: w - the symbol %s is undefined\n",
myname, s);
unterminated_string(int s_lineno, char *s_line, char *s_cptr)
illegal_character(char *c_cptr)
unterminated_action(int a_lineno, char *a_line, char *a_cptr)
open_error(char *filename)
dollar_error(int a_lineno, char *a_line, char *a_cptr)
unterminated_union(int u_lineno, char *u_line, char *u_cptr)
terminal_lhs(int s_lineno)
revalued_warning(char *s)
done(int k)
Shutdown function.
dollar_warning(int a_lineno, int i)
illegal_tag(int t_lineno, char *t_line, char *t_cptr)
undefined_symbol_warning(char *s)
print_pos(char *st_line, char *st_cptr)
unterminated_comment(int c_lineno, char *c_line, char *c_cptr)
syntax_error(int st_lineno, char *st_line, char *st_cptr)
unterminated_text(int t_lineno, char *t_line, char *t_cptr)
untyped_rhs(int i, char *s)
over_unionized(char *u_cptr)