2 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3 * See the copyright notice in the ACK home directory, in the file "Copyright".
17 extern int listing,errorcnt;
20 if ( !listing ) fprint(STDERR, "LINE %d:",basicline);
21 fprint(STDERR, format,ch);
27 error_string(format,str)
31 extern int listing,errorcnt;
34 if ( !listing ) fprint(STDERR, "LINE %d:",basicline);
35 fprint(STDERR, format,str);
41 LLmessage( insertedtok )
44 if ( insertedtok < 0 ) {
45 error("Fatal stack overflow\n");
50 if ( insertedtok == 0 )
52 error_char("%c deleted\n", (char)LLsymb);
54 error_string("%s deleted\n", tokentab[ LLsymb-256 ]);
56 if ( insertedtok < 256 )
57 error_char("%c inserted\n", (char)insertedtok);
59 error_string("%s inserted\n", tokentab[ insertedtok-256 ]);