version 1.3, 1996/06/26 05:44:36 |
version 1.4, 1999/08/04 18:31:26 |
|
|
fatal(msg) |
fatal(msg) |
char *msg; |
char *msg; |
{ |
{ |
fprintf(stderr, "%s: f - %s\n", myname, msg); |
fprintf(stderr, "%s: f - %s\n", __progname, msg); |
done(2); |
done(2); |
} |
} |
|
|
|
|
no_space() |
no_space() |
{ |
{ |
fprintf(stderr, "%s: f - out of space\n", myname); |
fprintf(stderr, "%s: f - out of space\n", __progname); |
done(2); |
done(2); |
} |
} |
|
|
|
|
open_error(filename) |
open_error(filename) |
char *filename; |
char *filename; |
{ |
{ |
fprintf(stderr, "%s: f - cannot open \"%s\"\n", myname, filename); |
fprintf(stderr, "%s: f - cannot open \"%s\"\n", __progname, filename); |
done(2); |
done(2); |
} |
} |
|
|
|
|
unexpected_EOF() |
unexpected_EOF() |
{ |
{ |
fprintf(stderr, "%s: e - line %d of \"%s\", unexpected end-of-file\n", |
fprintf(stderr, "%s: e - line %d of \"%s\", unexpected end-of-file\n", |
myname, lineno, input_file_name); |
__progname, lineno, input_file_name); |
done(1); |
done(1); |
} |
} |
|
|
|
|
char *st_cptr; |
char *st_cptr; |
{ |
{ |
fprintf(stderr, "%s: e - line %d of \"%s\", syntax error\n", |
fprintf(stderr, "%s: e - line %d of \"%s\", syntax error\n", |
myname, st_lineno, input_file_name); |
__progname, st_lineno, input_file_name); |
print_pos(st_line, st_cptr); |
print_pos(st_line, st_cptr); |
done(1); |
done(1); |
} |
} |
|
|
char *c_cptr; |
char *c_cptr; |
{ |
{ |
fprintf(stderr, "%s: e - line %d of \"%s\", unmatched /*\n", |
fprintf(stderr, "%s: e - line %d of \"%s\", unmatched /*\n", |
myname, c_lineno, input_file_name); |
__progname, c_lineno, input_file_name); |
print_pos(c_line, c_cptr); |
print_pos(c_line, c_cptr); |
done(1); |
done(1); |
} |
} |
|
|
char *s_cptr; |
char *s_cptr; |
{ |
{ |
fprintf(stderr, "%s: e - line %d of \"%s\", unterminated string\n", |
fprintf(stderr, "%s: e - line %d of \"%s\", unterminated string\n", |
myname, s_lineno, input_file_name); |
__progname, s_lineno, input_file_name); |
print_pos(s_line, s_cptr); |
print_pos(s_line, s_cptr); |
done(1); |
done(1); |
} |
} |
|
|
char *t_cptr; |
char *t_cptr; |
{ |
{ |
fprintf(stderr, "%s: e - line %d of \"%s\", unmatched %%{\n", |
fprintf(stderr, "%s: e - line %d of \"%s\", unmatched %%{\n", |
myname, t_lineno, input_file_name); |
__progname, t_lineno, input_file_name); |
print_pos(t_line, t_cptr); |
print_pos(t_line, t_cptr); |
done(1); |
done(1); |
} |
} |
|
|
char *u_cptr; |
char *u_cptr; |
{ |
{ |
fprintf(stderr, "%s: e - line %d of \"%s\", unterminated %%union \ |
fprintf(stderr, "%s: e - line %d of \"%s\", unterminated %%union \ |
declaration\n", myname, u_lineno, input_file_name); |
declaration\n", __progname, u_lineno, input_file_name); |
print_pos(u_line, u_cptr); |
print_pos(u_line, u_cptr); |
done(1); |
done(1); |
} |
} |
|
|
char *u_cptr; |
char *u_cptr; |
{ |
{ |
fprintf(stderr, "%s: e - line %d of \"%s\", too many %%union \ |
fprintf(stderr, "%s: e - line %d of \"%s\", too many %%union \ |
declarations\n", myname, lineno, input_file_name); |
declarations\n", __progname, lineno, input_file_name); |
print_pos(line, u_cptr); |
print_pos(line, u_cptr); |
done(1); |
done(1); |
} |
} |
|
|
char *t_cptr; |
char *t_cptr; |
{ |
{ |
fprintf(stderr, "%s: e - line %d of \"%s\", illegal tag\n", |
fprintf(stderr, "%s: e - line %d of \"%s\", illegal tag\n", |
myname, t_lineno, input_file_name); |
__progname, t_lineno, input_file_name); |
print_pos(t_line, t_cptr); |
print_pos(t_line, t_cptr); |
done(1); |
done(1); |
} |
} |
|
|
char *c_cptr; |
char *c_cptr; |
{ |
{ |
fprintf(stderr, "%s: e - line %d of \"%s\", illegal character\n", |
fprintf(stderr, "%s: e - line %d of \"%s\", illegal character\n", |
myname, lineno, input_file_name); |
__progname, lineno, input_file_name); |
print_pos(line, c_cptr); |
print_pos(line, c_cptr); |
done(1); |
done(1); |
} |
} |
|
|
char *s; |
char *s; |
{ |
{ |
fprintf(stderr, "%s: e - line %d of \"%s\", illegal use of reserved symbol \ |
fprintf(stderr, "%s: e - line %d of \"%s\", illegal use of reserved symbol \ |
%s\n", myname, lineno, input_file_name, s); |
%s\n", __progname, lineno, input_file_name, s); |
done(1); |
done(1); |
} |
} |
|
|
|
|
char *s; |
char *s; |
{ |
{ |
fprintf(stderr, "%s: e - line %d of \"%s\", the start symbol %s cannot be \ |
fprintf(stderr, "%s: e - line %d of \"%s\", the start symbol %s cannot be \ |
declared to be a token\n", myname, lineno, input_file_name, s); |
declared to be a token\n", __progname, lineno, input_file_name, s); |
done(1); |
done(1); |
} |
} |
|
|
|
|
char *s; |
char *s; |
{ |
{ |
fprintf(stderr, "%s: w - line %d of \"%s\", the type of %s has been \ |
fprintf(stderr, "%s: w - line %d of \"%s\", the type of %s has been \ |
redeclared\n", myname, lineno, input_file_name, s); |
redeclared\n", __progname, lineno, input_file_name, s); |
} |
} |
|
|
|
|
|
|
char *s; |
char *s; |
{ |
{ |
fprintf(stderr, "%s: w - line %d of \"%s\", the precedence of %s has been \ |
fprintf(stderr, "%s: w - line %d of \"%s\", the precedence of %s has been \ |
redeclared\n", myname, lineno, input_file_name, s); |
redeclared\n", __progname, lineno, input_file_name, s); |
} |
} |
|
|
|
|
|
|
char *s; |
char *s; |
{ |
{ |
fprintf(stderr, "%s: w - line %d of \"%s\", the value of %s has been \ |
fprintf(stderr, "%s: w - line %d of \"%s\", the value of %s has been \ |
redeclared\n", myname, lineno, input_file_name, s); |
redeclared\n", __progname, lineno, input_file_name, s); |
} |
} |
|
|
|
|
|
|
char *s; |
char *s; |
{ |
{ |
fprintf(stderr, "%s: e - line %d of \"%s\", the start symbol %s is a \ |
fprintf(stderr, "%s: e - line %d of \"%s\", the start symbol %s is a \ |
token\n", myname, lineno, input_file_name, s); |
token\n", __progname, lineno, input_file_name, s); |
done(1); |
done(1); |
} |
} |
|
|
|
|
restarted_warning() |
restarted_warning() |
{ |
{ |
fprintf(stderr, "%s: w - line %d of \"%s\", the start symbol has been \ |
fprintf(stderr, "%s: w - line %d of \"%s\", the start symbol has been \ |
redeclared\n", myname, lineno, input_file_name); |
redeclared\n", __progname, lineno, input_file_name); |
} |
} |
|
|
|
|
no_grammar() |
no_grammar() |
{ |
{ |
fprintf(stderr, "%s: e - line %d of \"%s\", no grammar has been \ |
fprintf(stderr, "%s: e - line %d of \"%s\", no grammar has been \ |
specified\n", myname, lineno, input_file_name); |
specified\n", __progname, lineno, input_file_name); |
done(1); |
done(1); |
} |
} |
|
|
|
|
int s_lineno; |
int s_lineno; |
{ |
{ |
fprintf(stderr, "%s: e - line %d of \"%s\", a token appears on the lhs \ |
fprintf(stderr, "%s: e - line %d of \"%s\", a token appears on the lhs \ |
of a production\n", myname, s_lineno, input_file_name); |
of a production\n", __progname, s_lineno, input_file_name); |
done(1); |
done(1); |
} |
} |
|
|
|
|
prec_redeclared() |
prec_redeclared() |
{ |
{ |
fprintf(stderr, "%s: w - line %d of \"%s\", conflicting %%prec \ |
fprintf(stderr, "%s: w - line %d of \"%s\", conflicting %%prec \ |
specifiers\n", myname, lineno, input_file_name); |
specifiers\n", __progname, lineno, input_file_name); |
} |
} |
|
|
|
|
|
|
char *a_cptr; |
char *a_cptr; |
{ |
{ |
fprintf(stderr, "%s: e - line %d of \"%s\", unterminated action\n", |
fprintf(stderr, "%s: e - line %d of \"%s\", unterminated action\n", |
myname, a_lineno, input_file_name); |
__progname, a_lineno, input_file_name); |
print_pos(a_line, a_cptr); |
print_pos(a_line, a_cptr); |
done(1); |
done(1); |
} |
} |
|
|
int i; |
int i; |
{ |
{ |
fprintf(stderr, "%s: w - line %d of \"%s\", $%d references beyond the \ |
fprintf(stderr, "%s: w - line %d of \"%s\", $%d references beyond the \ |
end of the current rule\n", myname, a_lineno, input_file_name, i); |
end of the current rule\n", __progname, a_lineno, input_file_name, i); |
} |
} |
|
|
|
|
|
|
char *a_cptr; |
char *a_cptr; |
{ |
{ |
fprintf(stderr, "%s: e - line %d of \"%s\", illegal $-name\n", |
fprintf(stderr, "%s: e - line %d of \"%s\", illegal $-name\n", |
myname, a_lineno, input_file_name); |
__progname, a_lineno, input_file_name); |
print_pos(a_line, a_cptr); |
print_pos(a_line, a_cptr); |
done(1); |
done(1); |
} |
} |
|
|
untyped_lhs() |
untyped_lhs() |
{ |
{ |
fprintf(stderr, "%s: e - line %d of \"%s\", $$ is untyped\n", |
fprintf(stderr, "%s: e - line %d of \"%s\", $$ is untyped\n", |
myname, lineno, input_file_name); |
__progname, lineno, input_file_name); |
done(1); |
done(1); |
} |
} |
|
|
|
|
char *s; |
char *s; |
{ |
{ |
fprintf(stderr, "%s: e - line %d of \"%s\", $%d (%s) is untyped\n", |
fprintf(stderr, "%s: e - line %d of \"%s\", $%d (%s) is untyped\n", |
myname, lineno, input_file_name, i, s); |
__progname, lineno, input_file_name, i, s); |
done(1); |
done(1); |
} |
} |
|
|
|
|
int i; |
int i; |
{ |
{ |
fprintf(stderr, "%s: e - line %d of \"%s\", $%d is untyped\n", |
fprintf(stderr, "%s: e - line %d of \"%s\", $%d is untyped\n", |
myname, lineno, input_file_name, i); |
__progname, lineno, input_file_name, i); |
done(1); |
done(1); |
} |
} |
|
|
|
|
default_action_warning() |
default_action_warning() |
{ |
{ |
fprintf(stderr, "%s: w - line %d of \"%s\", the default action assigns an \ |
fprintf(stderr, "%s: w - line %d of \"%s\", the default action assigns an \ |
undefined value to $$\n", myname, lineno, input_file_name); |
undefined value to $$\n", __progname, lineno, input_file_name); |
} |
} |
|
|
|
|
undefined_goal(s) |
undefined_goal(s) |
char *s; |
char *s; |
{ |
{ |
fprintf(stderr, "%s: e - the start symbol %s is undefined\n", myname, s); |
fprintf(stderr, "%s: e - the start symbol %s is undefined\n", __progname, s); |
done(1); |
done(1); |
} |
} |
|
|
|
|
undefined_symbol_warning(s) |
undefined_symbol_warning(s) |
char *s; |
char *s; |
{ |
{ |
fprintf(stderr, "%s: w - the symbol %s is undefined\n", myname, s); |
fprintf(stderr, "%s: w - the symbol %s is undefined\n", __progname, s); |
} |
} |