SBSPSS/Utils/Parser Generator/SOURCE/yymerror.c
2000-12-08 20:40:33 +00:00

28 lines
635 B
C

/************************************************************
yymerror.c
This file can be freely modified for the generation of
custom code.
Copyright (c) 1999 Bumble-Bee Software Ltd.
************************************************************/
#include <stdio.h>
#include "myacc.h"
#ifdef YYPROTOTYPE
void YYCDECL yymerror(yymparse_t YYFAR *yy, YYCONST char YYFAR *text)
#else
void YYCDECL yymerror(yy, text)
yymparse_t YYFAR *yy;
YYCONST char YYFAR *text;
#endif
{
yyassert(yy != NULL);
yyassert(text != NULL);
yyassert(yy->yymerr != NULL);
while (*text != '\0') {
putc(*text++, yy->yymerr);
}
putc('\n', yy->yymerr);
}