This commit is contained in:
parent
f857751606
commit
aae2e8e05f
168 changed files with 11625 additions and 0 deletions
34
Utils/Parser Generator/SOURCE/yycoutpt.cpp
Normal file
34
Utils/Parser Generator/SOURCE/yycoutpt.cpp
Normal file
|
@ -0,0 +1,34 @@
|
|||
/************************************************************
|
||||
yycoutpt.cpp
|
||||
This file can be freely modified for the generation of
|
||||
custom code.
|
||||
|
||||
Copyright (c) 1999 Bumble-Bee Software Ltd.
|
||||
************************************************************/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <limits.h>
|
||||
#include "clex.h"
|
||||
|
||||
void yylexer::yyoutput(int ch)
|
||||
{
|
||||
// debugging
|
||||
#ifdef YYDEBUG
|
||||
if (::yydebug || yydebug) {
|
||||
char string[128];
|
||||
|
||||
sprintf(string, "%p: output: \'", (void*)this);
|
||||
yydebugoutput(string);
|
||||
yydebugoutput(ch);
|
||||
yydebugoutput("\'\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
yyassert(yyout != NULL);
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
putc((char)ch, yyout);
|
||||
#else
|
||||
putc(ch, yyout);
|
||||
#endif
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue