README

errordet.prg is a shellscript to create usefull syntax error messages
from an y.output file generated by yacc.
The message is displayed by a call of errordet(yy_state).
This call is done automatically by the yacc parser if it encouters a
syntax error.
From errordet the function on_syntax_err(), which is declared as extern void,
is called. You have to define this function yourself which can be as simple as

void on_syntax_err()
{
    exit(EXIT_SYNTAX_ERR);
}

to handle your own reactions on a syntax error.
other files involved:

	errordet.fini
	errordet.h 	/* to be included in yourname.y */
	errordet.imake 	/* to be included in imakefile */
	errordet.ini
	errordet.sed
	errordet.prg
