yyerror(s) char * s; yymark(fnm) char * fnm; yywhere()
yyerror() calls yywhere() as part of an error message. yywhere() prints as much location information to standard output as possible from the environment maintained by a lexical analyzer generated by lex.1
yymark() can be passed a filename which is saved to become part of the location information. yylineno is reset to 1. If fnm is a null pointer, yymark() assumes that yytext contains a file position stamp as generated by the C preprocessor and tries to obtain the file name and yylineno from there.
If the parser does not use lex , an empty function should be sustituted for yywhere().
Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97