parser.cpp File Reference
#include "parser.h"
#include "driver.h"
#include "lexer.h"
#include "errors.h"
#include <qstring.h>
#include <qstringlist.h>
#include <qasciidict.h>
#include <kdebug.h>
#include <klocale.h>
Include dependency graph for parser.cpp:

Go to the source code of this file.
Classes | |
struct | ParserPrivateData |
Defines | |
#define | ADVANCE(tk, descr) |
#define | ADVANCE_NR(tk, descr) |
#define | CHECK(tk, descr) |
#define | MATCH(tk, descr) |
#define | UPDATE_POS(node, start, end) |
#define | AST_FROM_TOKEN(node, tk) |
Enumerations | |
enum | { OBJC_CLASS, OBJC_PROTOCOL, OBJC_ALIAS } |
Define Documentation
|
|
Value: { \ const Token& token = lex->lookAhead( 0 ); \ if( token != tk ){ \ reportError( i18n("'%1' expected found '%2'").arg(descr).arg(token.text()) ); \ } \ else \ lex->nextToken(); \ } Definition at line 46 of file parser.cpp. Referenced by Parser::parseDoStatement(). |
|
Value: AST::Node node = CreateNode<AST>(); \ UPDATE_POS( node, (tk), (tk)+1 ); Definition at line 91 of file parser.cpp. Referenced by Parser::parseBaseSpecifier(), Parser::parseExceptionSpecification(), Parser::parseIdentifierList(), Parser::parseParameterDeclarationClause(), and Parser::parseTypeParameter(). |
|
Value: { \ const Token& token = lex->lookAhead( 0 ); \ if( token != tk ){ \ return false; \ } \ lex->nextToken(); \ } Definition at line 56 of file parser.cpp. Referenced by Parser::parseConditionalExpression(), Parser::parseDeleteExpression(), Parser::parseNewExpression(), Parser::parseNewInitializer(), Parser::parsePostfixExpression(), Parser::parsePrimaryExpression(), and Parser::parseThrowExpression(). |
|
Value: { \ const Token& token = lex->lookAhead( 0 ); \ if( token != tk ){ \ reportError( Errors::SyntaxError ); \ return false; \ } \ } Definition at line 65 of file parser.cpp. |
|
Enumeration Type Documentation
|
Definition at line 97 of file parser.cpp. |