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