This commit is contained in:
parent
f857751606
commit
aae2e8e05f
168 changed files with 11625 additions and 0 deletions
23
Utils/Parser Generator/SOURCE/yycless.cpp
Normal file
23
Utils/Parser Generator/SOURCE/yycless.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
/************************************************************
|
||||
yycless.cpp
|
||||
This file can be freely modified for the generation of
|
||||
custom code.
|
||||
|
||||
Copyright (c) 1999 Bumble-Bee Software Ltd.
|
||||
************************************************************/
|
||||
|
||||
#include "clex.h"
|
||||
|
||||
void yylexer::yyless(int length)
|
||||
{
|
||||
yyassert(length >= 0 && length <= yyleng);
|
||||
while (yyleng > length) {
|
||||
yyunput((unsigned char)yytext[--yyleng]);
|
||||
}
|
||||
if (yyleng > 0) {
|
||||
yyeol = (unsigned char)(yytext[yyleng - 1] == '\n');
|
||||
}
|
||||
else {
|
||||
yyeol = yyoldeol;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue