Logo Search packages:      
Sourcecode: eclipse-cdt version File versions  Download package

org::eclipse::cdt::internal::core::dom::parser::cpp::GNUCPPSourceParser Class Reference

Inheritance diagram for org::eclipse::cdt::internal::core::dom::parser::cpp::GNUCPPSourceParser:

org::eclipse::cdt::internal::core::dom::parser::AbstractGNUSourceCodeParser org::eclipse::cdt::internal::core::dom::parser::ISourceCodeParser

List of all members.


Detailed Description

This is our implementation of the IParser interface, serving as a parser for GNU C and C++. From time to time we will make reference to the ANSI ISO specifications.

Author:
jcamelon

Definition at line 163 of file GNUCPPSourceParser.java.


Public Member Functions

synchronized void cancel ()
boolean encounteredError ()
final int getBacktrackCount ()
ASTCompletionNode getCompletionNode ()
 GNUCPPSourceParser (IScanner scanner, ParserMode mode, IParserLogService log, ICPPParserExtensionConfiguration config)
IASTTranslationUnit parse ()
String toString ()

Protected Member Functions

void __attribute__ () throws BacktrackException, EndOfFileException
IASTExpression additiveExpression () throws BacktrackException, EndOfFileException
IASTExpression andExpression () throws EndOfFileException, BacktrackException
IASTDeclaration asmDeclaration () throws EndOfFileException, BacktrackException
IASTExpression assignmentExpression () throws EndOfFileException, BacktrackException
IASTExpression assignmentOperatorExpression (int kind, IASTExpression lhs) throws EndOfFileException, BacktrackException
void backup (IToken mark)
void baseSpecifier (ICPPASTCompositeTypeSpecifier astClassSpec) throws EndOfFileException, BacktrackException
IASTASMDeclaration buildASMDirective (int offset, String assembly, int lastOffset)
IASTExpression buildBinaryExpression (int operator, IASTExpression firstExpression, IASTExpression secondExpression, int lastOffset)
IASTExpression buildTypeIdExpression (int op, IASTTypeId typeId, int startingOffset, int endingOffset)
IASTExpression buildTypeIdUnaryExpression (int op, IASTTypeId typeId, IASTExpression subExpression, int startingOffset, int lastOffset)
IASTExpression buildUnaryExpression (int operator, IASTExpression operand, int offset, int lastOffset)
int calculateEndOffset (IASTNode n)
IASTExpression castExpression () throws EndOfFileException, BacktrackException
IASTStatement catchBlockCompoundStatement () throws BacktrackException, EndOfFileException
void catchHandlerSequence (List collection) throws EndOfFileException, BacktrackException
void checkTokenVsDeclarator (IToken la, IASTDeclarator d) throws FoundDeclaratorException
ICPPASTCompositeTypeSpecifier classSpecifier () throws BacktrackException, EndOfFileException
IASTCompoundStatement compoundStatement () throws EndOfFileException, BacktrackException
IASTExpression compoundStatementExpression () throws EndOfFileException, BacktrackException
IASTExpression condition () throws BacktrackException, EndOfFileException
IASTExpression conditionalExpression () throws BacktrackException, EndOfFileException
IASTExpression constantExpression () throws BacktrackException, EndOfFileException
IToken consume (int type) throws EndOfFileException, BacktrackException
IToken consume () throws EndOfFileException
void consumeArrayModifiers (List collection) throws EndOfFileException, BacktrackException
void consumePointerOperators (List collection) throws EndOfFileException, BacktrackException
IToken consumeTemplateArguments (IToken last, TemplateParameterManager argumentList) throws EndOfFileException, BacktrackException
IASTName consumeTemplatedOperatorName () throws EndOfFileException, BacktrackException
IToken consumeTemplateParameters (IToken previousLast) throws EndOfFileException, BacktrackException
IASTNode cppStyleCondition (boolean expectSemi) throws BacktrackException, EndOfFileException
IASTAmbiguousDeclaration createAmbiguousDeclaration ()
IASTAmbiguousExpression createAmbiguousExpression ()
IASTAmbiguousStatement createAmbiguousStatement ()
IASTDeclarator createArrayDeclarator ()
IASTArrayModifier createArrayModifier ()
IASTArraySubscriptExpression createArraySubscriptExpression ()
IASTASMDeclaration createASMDirective ()
ICPPASTBaseSpecifier createBaseSpecifier ()
IASTBinaryExpression createBinaryExpression ()
IASTBreakStatement createBreakStatement ()
IASTCaseStatement createCaseStatement ()
IASTCastExpression createCastExpression ()
ICPPASTCatchHandler createCatchHandler ()
ICPPASTCompositeTypeSpecifier createClassSpecifier ()
ASTCompletionNode createCompletionNode (IToken token)
IASTCompoundStatement createCompoundStatement ()
IGNUASTCompoundStatementExpression createCompoundStatementExpression ()
IASTConditionalExpression createConditionalExpression ()
ICPPASTConstructorChainInitializer createConstructorChainInitializer ()
ICPPASTConstructorInitializer createConstructorInitializer ()
IASTContinueStatement createContinueStatement ()
IASTDeclarationStatement createDeclarationStatement ()
IASTDeclarator createDeclarator ()
IASTDefaultStatement createDefaultStatement ()
ICPPASTDeleteExpression createDeleteExpression ()
IASTDoStatement createDoStatement ()
ICPPASTElaboratedTypeSpecifier createElaboratedTypeSpecifier ()
IASTEnumerationSpecifier createEnumerationSpecifier ()
IASTEnumerator createEnumerator ()
IASTExpressionList createExpressionList ()
IASTExpressionStatement createExpressionStatement ()
IASTFieldDeclarator createFieldDeclarator ()
ICPPASTFieldReference createFieldReference ()
ICPPASTForStatement createForStatement ()
IASTFunctionCallExpression createFunctionCallExpression ()
ICPPASTFunctionDeclarator createFunctionDeclarator ()
IASTFunctionDefinition createFunctionDefinition ()
IGPPASTExplicitTemplateInstantiation createGnuTemplateInstantiation ()
IASTGotoStatement createGoToStatement ()
ICPPASTSimpleDeclSpecifier createGPPSimpleDeclSpecifier ()
IASTIdExpression createIdExpression ()
ICPPASTIfStatement createIfStatement ()
IASTInitializerExpression createInitializerExpression ()
IASTInitializerList createInitializerList ()
IASTLabelStatement createLabelStatement ()
ICPPASTLinkageSpecification createLinkageSpecification ()
ICPPASTLiteralExpression createLiteralExpression ()
IASTName createName ()
IASTName createName (IToken token)
IASTName createName (ITokenDuple duple)
IASTNamedTypeSpecifier createNamedTypeSpecifier ()
ICPPASTNamespaceAlias createNamespaceAlias ()
ICPPASTNamespaceDefinition createNamespaceDefinition ()
ICPPASTNewExpression createNewExpression ()
IASTNullStatement createNullStatement ()
IASTName createOperatorName (OperatorTokenDuple duple, IASTName name)
ICPPASTParameterDeclaration createParameterDeclaration ()
IASTPointerOperator createPointer (boolean gnu)
ICPPASTPointerToMember createPointerToMember (boolean gnu)
IASTProblem createProblem (int signal, int offset, int length)
IASTProblemDeclaration createProblemDeclaration ()
IASTProblemExpression createProblemExpression ()
IASTProblemStatement createProblemStatement ()
ICPPASTQualifiedName createQualifiedName (ITokenDuple duple)
ICPPASTReferenceOperator createReferenceOperator ()
IASTReturnStatement createReturnStatement ()
IASTSimpleDeclaration createSimpleDeclaration ()
ICPPASTSimpleDeclSpecifier createSimpleDeclSpecifier ()
ICPPASTSimpleTypeTemplateParameter createSimpleTemplateParameter ()
ICPPASTSimpleTypeConstructorExpression createSimpleTypeConstructorExpression ()
ICPPASTSwitchStatement createSwitchStatement ()
ICPPASTTemplateDeclaration createTemplateDeclaration ()
ICPPASTTemplatedTypeTemplateParameter createTemplatedTemplateParameter ()
ICPPASTTemplateId createTemplateID (ITokenDuple duple)
ICPPASTExplicitTemplateInstantiation createTemplateInstantiation ()
ICPPASTTemplateSpecialization createTemplateSpecialization ()
CPPASTTranslationUnit createTranslationUnit ()
ICPPASTFunctionTryBlockDeclarator createTryBlockDeclarator ()
ICPPASTTryBlockStatement createTryBlockStatement ()
IASTTypeId createTypeId ()
ICPPASTTypeIdExpression createTypeIdExpression ()
IASTProblemTypeId createTypeIDProblem ()
ICPPASTTypenameExpression createTypenameExpression ()
IASTUnaryExpression createUnaryExpression ()
ICPPASTUsingDeclaration createUsingDeclaration ()
ICPPASTUsingDirective createUsingDirective ()
ICPPASTVisiblityLabel createVisibilityLabel ()
ASTVisitor createVisitor ()
IASTWhileStatement createWhileStatement ()
void ctorInitializer (List collection) throws EndOfFileException, BacktrackException
IASTDeclaration declaration () throws EndOfFileException, BacktrackException
IASTDeclarator declarator (SimpleDeclarationStrategy strategy, boolean forNewTypeId) throws EndOfFileException, BacktrackException
ICPPASTDeclSpecifier declSpecifierSeq (boolean parm, boolean forTypeId) throws BacktrackException, EndOfFileException, FoundDeclaratorException
IASTExpression deleteExpression () throws EndOfFileException, BacktrackException
ICPPASTElaboratedTypeSpecifier elaboratedTypeSpecifier () throws BacktrackException, EndOfFileException
IASTEnumerationSpecifier enumSpecifier () throws BacktrackException, EndOfFileException
IASTExpression equalityExpression () throws EndOfFileException, BacktrackException
void errorHandling () throws EndOfFileException
IASTExpression exclusiveOrExpression () throws BacktrackException, EndOfFileException
IASTExpression expression () throws BacktrackException, EndOfFileException
IASTProblem failParse (BacktrackException bt)
void failParse ()
void failParseWithErrorHandling () throws EndOfFileException
IToken fetchToken () throws EndOfFileException
int figureEndOffset (IASTDeclSpecifier declSpecifier, IASTDeclarator declarator)
int figureEndOffset (IASTDeclSpecifier declSpec, IASTDeclarator[] declarators)
IASTStatement forInitStatement () throws BacktrackException, EndOfFileException
IASTStatement functionBody () throws EndOfFileException, BacktrackException
IASTTranslationUnit getTranslationUnit ()
IASTStatement handleFunctionBody () throws BacktrackException, EndOfFileException
void handleOffsetLimitException (OffsetLimitReachedException exception) throws EndOfFileException
IToken identifier () throws EndOfFileException, BacktrackException
IASTName idExpression () throws EndOfFileException, BacktrackException
IASTExpression inclusiveOrExpression () throws BacktrackException, EndOfFileException
IASTDeclarator initDeclarator (SimpleDeclarationStrategy strategy) throws EndOfFileException, BacktrackException
IASTDeclarator initDeclarator () throws EndOfFileException, BacktrackException
IASTInitializer initializerClause () throws EndOfFileException, BacktrackException
IToken LA (int i) throws EndOfFileException
ICPPASTLinkageSpecification linkageSpecification () throws EndOfFileException, BacktrackException
void logException (String methodName, Exception e)
IASTExpression logicalAndExpression () throws BacktrackException, EndOfFileException
IASTExpression logicalOrExpression () throws BacktrackException, EndOfFileException
void logThrowable (String methodName, Throwable e)
void lookAheadForDeclarator (Flags flags) throws FoundDeclaratorException
int LT (int i) throws EndOfFileException
IToken mark () throws EndOfFileException
IASTExpression multiplicativeExpression () throws BacktrackException, EndOfFileException
ITokenDuple name () throws BacktrackException, EndOfFileException
IASTDeclaration namespaceDefinitionOrAlias () throws BacktrackException, EndOfFileException
IASTExpression newExpression () throws BacktrackException, EndOfFileException
void nullifyTranslationUnit ()
IASTName operatorId (IToken originalToken, TemplateParameterManager templateArgs) throws BacktrackException, EndOfFileException
IASTInitializer optionalCPPInitializer (IASTDeclarator d) throws EndOfFileException, BacktrackException
ICPPASTParameterDeclaration parameterDeclaration () throws BacktrackException, EndOfFileException
IASTStatement parseBreakStatement () throws EndOfFileException, BacktrackException
IASTStatement parseCaseStatement () throws EndOfFileException, BacktrackException
IASTStatement parseCompoundStatement () throws EndOfFileException, BacktrackException
IASTStatement parseContinueStatement () throws EndOfFileException, BacktrackException
IASTStatement parseDeclarationOrExpressionStatement () throws EndOfFileException, BacktrackException
IASTStatement parseDefaultStatement () throws EndOfFileException, BacktrackException
IASTStatement parseDoStatement () throws EndOfFileException, BacktrackException
IASTStatement parseForStatement () throws EndOfFileException, BacktrackException
IASTStatement parseGotoStatement () throws EndOfFileException, BacktrackException
IASTStatement parseIfStatement () throws EndOfFileException, BacktrackException
IASTStatement parseLabelStatement () throws EndOfFileException, BacktrackException
IASTStatement parseNullStatement () throws EndOfFileException, BacktrackException
IASTStatement parseReturnStatement () throws EndOfFileException, BacktrackException
IASTExpression parseSizeofExpression () throws BacktrackException, EndOfFileException
IASTStatement parseSwitchStatement () throws EndOfFileException, BacktrackException
IASTStatement parseTryStatement () throws EndOfFileException, BacktrackException
IASTNode[] parseTypeIdOrUnaryExpression (boolean typeIdWithParentheses) throws EndOfFileException
IASTStatement parseWhileStatement () throws EndOfFileException, BacktrackException
IASTExpression pmExpression () throws EndOfFileException, BacktrackException
IASTExpression postfixExpression () throws EndOfFileException, BacktrackException
IASTExpression primaryExpression () throws EndOfFileException, BacktrackException
void reconcileLengths (IASTIfStatement result)
IASTExpression relationalExpression () throws BacktrackException, EndOfFileException
void resolveAmbiguities ()
IASTExpression shiftExpression () throws BacktrackException, EndOfFileException
IASTDeclaration simpleDeclaration () throws BacktrackException, EndOfFileException
IASTDeclaration simpleDeclaration (SimpleDeclarationStrategy strategy, boolean fromCatchHandler) throws BacktrackException, EndOfFileException
IASTDeclaration simpleDeclarationStrategyUnion () throws EndOfFileException, BacktrackException
IASTExpression simpleTypeConstructorExpression (int operator) throws EndOfFileException, BacktrackException
IToken skipOverCompoundStatement () throws BacktrackException, EndOfFileException
IASTExpression specialCastExpression (int kind) throws EndOfFileException, BacktrackException
IASTStatement statement () throws EndOfFileException, BacktrackException
List templateArgumentList () throws EndOfFileException, BacktrackException
IASTDeclaration templateDeclaration () throws EndOfFileException, BacktrackException
List templateParameterList () throws BacktrackException, EndOfFileException
void throwBacktrack (IToken token) throws BacktrackException
final void throwBacktrack (IASTProblem problem) throws BacktrackException
void throwBacktrack (BacktrackException bt) throws BacktrackException
final void throwBacktrack (int offset, int length) throws BacktrackException
IASTExpression throwExpression () throws EndOfFileException, BacktrackException
int token2Visibility (int type)
void translationUnit ()
IASTTypeId typeId (boolean forNewExpression) throws EndOfFileException, BacktrackException
IASTExpression unaryAlignofExpression () throws EndOfFileException, BacktrackException
IASTExpression unaryExpression () throws EndOfFileException, BacktrackException
IASTExpression unaryOperatorCastExpression (int operator) throws EndOfFileException, BacktrackException
IASTExpression unaryTypeofExpression () throws EndOfFileException, BacktrackException
IASTDeclaration usingClause () throws EndOfFileException, BacktrackException

Protected Attributes

BacktrackException backtrack = new BacktrackException()
int backtrackCount = 0
ASTCompletionNode completionNode
IToken currToken
boolean isCancelled = false
final IParserLogService log
final ParserMode mode
boolean parsePassed = true
final IScanner scanner
final boolean supportAlignOfUnaries
final boolean supportAttributeSpecifiers
final boolean supportGCCOtherBuiltinSymbols
final boolean supportKnRC
final boolean supportStatementsInExpressions
final boolean supportTypeOfUnaries
CPPASTTranslationUnit translationUnit

Static Protected Attributes

static final int DEFAULT_DESIGNATOR_LIST_SIZE = 4
static final char[] EMPTY_STRING = "".toCharArray()
static int parseCount = 0

Private Attributes

final boolean allowCPPRestrict
int functionBodyCount
final boolean supportComplex
final boolean supportExtendedTemplateSyntax
final boolean supportLongLong
final boolean supportMinAndMaxOperators
final boolean supportRestrict
int templateCount = 0
ScopeStack templateIdScopes = new ScopeStack()

Static Private Attributes

static final String CONST_CAST = "const_cast"
static final int DEFAULT_CATCH_HANDLER_LIST_SIZE = 4
static final int DEFAULT_CONSTRUCTOR_CHAIN_LIST_SIZE = 4
static final int DEFAULT_PARM_LIST_SIZE = 4
static final int DEFAULT_POINTEROPS_LIST_SIZE = 4
static final int DEFAULT_SIZE_EXCEPTIONS_LIST = 2
static final String DYNAMIC_CAST = "dynamic_cast"
static final EmptyVisitor EMPTY_VISITOR = new EmptyVisitor()
static final String REINTERPRET_CAST = "reinterpret_cast"
static final String STATIC_CAST = "static_cast"

Classes

class  EmptyVisitor
class  ScopeStack

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index