Changed binary expression parsing to use precedence parsing.

This commit is contained in:
Erik Verbruggen
2010-01-28 15:21:57 +01:00
parent a72230feee
commit 3dd011fcb6
3 changed files with 169 additions and 243 deletions

View File

@@ -214,6 +214,8 @@ public:
bool parseUsingDirective(DeclarationAST *&node);
bool parseWhileStatement(StatementAST *&node);
void parseExpressionWithOperatorPrecedence(ExpressionAST *&lhs, int minPrecedence);
// Qt MOC run
bool parseQtMethod(ExpressionAST *&node);
@@ -313,8 +315,7 @@ private:
bool _objCEnabled: 1;
bool _inFunctionBody: 1;
bool _inObjCImplementationContext: 1;
int depth;
int _expressionDepth;
std::map<unsigned, TemplateArgumentListEntry> _templateArgumentList;