up | Inhaltsverzeichniss | Kommentar

Manual page for yyerror(3)

yyerror, yymark, yywhere - error messages for yacc parser

SYNOPSIS

yyerror(s)
char * s;
yymark(fnm)
char * fnm;
yywhere()

DESCRIPTION

yyerror() prints error messages as generated by a yacc.1 parser to standard output. The function will combine the improved messages described in yyfix.1 into a single line.

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().

SEE ALSO

yyfix(1)


index | Inhaltsverzeichniss | Kommentar

Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).

Last modified 21/April/97