33 fprintf(
stderr,
"%s: fatal - cannot open \"%s\"\n",
myname, filename);
41 fprintf(
stderr,
"%s: error - line %d of \"%s\", unexpected end-of-file\n",
48 print_pos(
char *st_line,
char *st_cptr)
52 if (st_line == 0)
return(0);
53 for (s = st_line; *s !=
'\n'; ++s)
55 if (isprint((
int) *s) || *s ==
'\t')
61 for (s = st_line; s < st_cptr; ++s)
77 fprintf(
stderr,
"%s: error - line %d of \"%s\", syntax error\n",
79 print_pos(st_line, st_cptr);
87 fprintf(
stderr,
"%s: error - line %d of \"%s\", unmatched /*\n",
89 print_pos(c_line, c_cptr);
97 fprintf(
stderr,
"%s: error - line %d of \"%s\", unterminated string\n",
99 print_pos(s_line, s_cptr);
107 fprintf(
stderr,
"%s: error - line %d of \"%s\", unmatched %%{\n",
109 print_pos(t_line, t_cptr);
117 fprintf(
stderr,
"%s: error - line %d of \"%s\", unterminated %%union \ 119 print_pos(u_line, u_cptr);
127 fprintf(
stderr,
"%s: error - line %d of \"%s\", too many %%union \ 129 print_pos(
line, u_cptr);
137 fprintf(
stderr,
"%s: error - line %d of \"%s\", illegal tag\n",
139 print_pos(t_line, t_cptr);
147 fprintf(
stderr,
"%s: error - line %d of \"%s\", illegal character\n",
149 print_pos(
line, c_cptr);
157 fprintf(
stderr,
"%s: error - line %d of \"%s\", illegal use of reserved symbol \ 166 fprintf(
stderr,
"%s: error - line %d of \"%s\", the start symbol %s cannot be \ 175 fprintf(
stderr,
"%s: warning - line %d of \"%s\", the type of %s has been \ 183 fprintf(
stderr,
"%s: warning - line %d of \"%s\", the precedence of %s has been \ 191 fprintf(
stderr,
"%s: warning - line %d of \"%s\", the value of %s has been \ 199 fprintf(
stderr,
"%s: error - line %d of \"%s\", the start symbol %s is a \ 208 fprintf(
stderr,
"%s: warning - line %d of \"%s\", the start symbol has been \ 216 fprintf(
stderr,
"%s: error - line %d of \"%s\", no grammar has been \ 225 fprintf(
stderr,
"%s: error - line %d of \"%s\", a token appears on the lhs \ 234 fprintf(
stderr,
"%s: warning - line %d of \"%s\", conflicting %%prec \ 242 fprintf(
stderr,
"%s: error - line %d of \"%s\", unterminated action\n",
244 print_pos(a_line, a_cptr);
252 fprintf(
stderr,
"%s: warning - line %d of \"%s\", $%d references beyond the \ 260 fprintf(
stderr,
"%s: error - line %d of \"%s\", illegal $-name\n",
262 print_pos(a_line, a_cptr);
270 fprintf(
stderr,
"%s: error - line %d of \"%s\", $$ is untyped\n",
279 fprintf(
stderr,
"%s: error - line %d of \"%s\", $%d (%s) is untyped\n",
288 fprintf(
stderr,
"%s: error - line %d of \"%s\", $%d is untyped\n",
297 fprintf(
stderr,
"%s: warning - line %d of \"%s\", the default action assigns an \ 305 fprintf(
stderr,
"%s: error - the start symbol %s is undefined\n",
myname, s);
313 fprintf(
stderr,
"%s: warning - the symbol %s is undefined\n",
myname, s);
void restarted_warning(void)
void unterminated_text(int t_lineno, char *t_line, char *t_cptr)
void illegal_tag(int t_lineno, char *t_line, char *t_cptr)
void revalued_warning(char *s)
void reprec_warning(char *s)
void syntax_error(int st_lineno, char *st_line, char *st_cptr)
void dollar_warning(int a_lineno, int i)
void unterminated_action(int a_lineno, char *a_line, char *a_cptr)
void untyped_rhs(int i, char *s)
void prec_redeclared(void)
void unterminated_comment(int c_lineno, char *c_line, char *c_cptr)
void unterminated_string(int s_lineno, char *s_line, char *s_cptr)
void over_unionized(char *u_cptr)
void default_action_warning(void)
void unterminated_union(int u_lineno, char *u_line, char *u_cptr)
void terminal_start(char *s)
void retyped_warning(char *s)
void illegal_character(char *c_cptr)
void dollar_error(int a_lineno, char *a_line, char *a_cptr)
void terminal_lhs(int s_lineno)
void undefined_goal(char *s)
void tokenized_start(char *s)
void unexpected_EOF(void)
void used_reserved(char *s)
void open_error(char *filename)
void undefined_symbol_warning(char *s)