Token::Token(Position pos)
{
d->pos=pos;
+ d->type=Invalid;
}
Token::Token(QString c,Token::Type t,Position pos)
d->cont=c;
d->val=v;
d->pos=pos;
+ d->type=Literal;
}
QString Token::content()const{return d->cont;}
case Token::Invalid:dbg<<"Invalid";break;
case Token::Name:dbg<<"Name";break;
case Token::Operator:dbg<<"Operator";break;
- case Token::ParClose:dbg<<"OpeningParenthesis";break;
- case Token::ParOpen:dbg<<"ClosingParenthesis";break;
+ case Token::ParClose:dbg<<"ClosingParenthesis";break;
+ case Token::ParOpen:dbg<<"OpeningParenthesis";break;
case Token::Comma:dbg<<"Comma";break;
case Token::Literal:dbg<<"LiteralValue"<<",value="<<tok.literalValue();break;
case Token::Whitespace:dbg<<"WhiteSpace";break;
TEMPLATE = app
TARGET = parsertest
QT -= gui
-CONFIG += qtestlib debug
+CONFIG += qtestlib debug link_prl
INCLUDEPATH += . ../../src
-DEPENDPATH += $$INCLUDEPATH
+DEPENDPATH += $$INCLUDEPATH ../..
LIBS += -L../.. -lelam
SOURCES += parser.cpp