SBSPSS/Utils/Parser Generator/SOURCE/yymerror.c

28 lines
635 B
C
Raw Normal View History

2000-12-08 21:40:33 +01:00
/************************************************************
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);
}