From: konrad Date: Mon, 15 Nov 2010 06:47:12 +0000 (+0000) Subject: minor fixes X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=fdb654b89ddb7a75bbb4837e24d40c7c351f5894;p=web%2Fkonrad%2Felam.git minor fixes git-svn-id: https://silmor.de/svn/softmagic/elam/trunk@628 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- diff --git a/src/elamexpression.cpp b/src/elamexpression.cpp index 358cd81..e847457 100644 --- a/src/elamexpression.cpp +++ b/src/elamexpression.cpp @@ -18,6 +18,7 @@ DEFINE_DPTR(Token) Token::Token(Position pos) { d->pos=pos; + d->type=Invalid; } Token::Token(QString c,Token::Type t,Position pos) @@ -32,6 +33,7 @@ Token::Token(QString c,QVariant v,Position pos) d->cont=c; d->val=v; d->pos=pos; + d->type=Literal; } QString Token::content()const{return d->cont;} @@ -46,8 +48,8 @@ QDebug&operator<<(QDebug&dbg,const Token&tok) 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="<