|
|
|
@ -140,7 +140,7 @@ public:
|
|
|
|
|
YY_BUFFER_STATE buffer;
|
|
|
|
|
int lastToken, thisToken;
|
|
|
|
|
int lastPos, thisPos;
|
|
|
|
|
QString lastTokenData, thisTokenData;
|
|
|
|
|
TQString lastTokenData, thisTokenData;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/* Declared in function.h, implemented here in lexer.l since this is where
|
|
|
|
@ -159,7 +159,7 @@ Lexer::Lexer(const TQString &expr) :
|
|
|
|
|
m_private->lastPos = -1;
|
|
|
|
|
|
|
|
|
|
m_private->thisToken = yylex();
|
|
|
|
|
m_private->thisTokenData = QString(yytext);
|
|
|
|
|
m_private->thisTokenData = TQString(yytext);
|
|
|
|
|
|
|
|
|
|
if(yyCurTokenPos != 0)
|
|
|
|
|
{
|
|
|
|
@ -187,7 +187,7 @@ int Lexer::nextType()
|
|
|
|
|
m_private->lastToken = m_private->thisToken;
|
|
|
|
|
|
|
|
|
|
m_private->thisToken = yylex();
|
|
|
|
|
m_private->thisTokenData = QString(yytext);
|
|
|
|
|
m_private->thisTokenData = TQString(yytext);
|
|
|
|
|
m_private->thisPos = yyCurTokenPos;
|
|
|
|
|
|
|
|
|
|
return m_private->lastToken;
|
|
|
|
|