/* Copyright (c) 1979 Regents of the University of California */
static char sccsid
[] = "@(#)yyerror.c 1.1 8/27/80";
* message and then returns
* NIL for the tree if needed.
* The error is flagged on the
* current line which is printed
* if the listing is turned off.
* As is obvious from the fooling around
* with fout below, the Pascal system should
* be changed to use the new library "lS".
yerror(s
, a1
, a2
, a3
, a4
, a5
)
if (errpfx
== 'w' && opt('w') != 0) {
for (i
= 3; i
< yyecol
; i
++)
printf(s
, a1
, a2
, a3
, a4
, a5
);
if (yySerrs
>= MAXSYNERR
) {
yerror("Too many syntax errors - QUIT");
* A bracketing error message
error("End matched %s on line %d", what
, where
);
yerror("Inserted keyword end matching %s on line %d", what
, where
);