public class Parser
errorCount |
| Current error count |
warningCount |
| Current warning count |
fileName |
| Name used when reporting warnings and errors |
allocator |
| Allocator used for creating AST nodes |
messageFunction |
| Function that is called when a warning or error is encountered. The parameters are the file name, line number, column number, and the error or warning message. |
parseAddExpression | Parses an AddExpression. | |
parseAliasDeclaration | Parses an AliasDeclaration. | |
parseAliasInitializer | Parses an AliasInitializer. | |
parseAliasThisDeclaration | Parses an AliasThisDeclaration. | |
parseAlignAttribute | Parses an AlignAttribute. | |
parseAndAndExpression | Parses an AndAndExpression. | |
parseAndExpression | Parses an AndExpression. | |
parseArgumentList | Parses an ArgumentList. | |
parseArguments | Parses Arguments. | |
parseArrayInitializer | Parses an ArrayInitializer. | |
parseArrayLiteral | Parses an ArrayLiteral. | |
parseArrayMemberInitialization | Parses an ArrayMemberInitialization. | |
parseAsmAddExp | Parses an AsmAddExp | |
parseAsmAndExp | Parses an AsmAndExp | |
parseAsmBrExp | Parses an AsmBrExp | |
parseAsmEqualExp | Parses an AsmEqualExp | |
parseAsmExp | Parses an AsmExp | |
parseAsmInstruction | Parses an AsmInstruction | |
parseAsmLogAndExp | Parses an AsmLogAndExp | |
parseAsmLogOrExp | Parses an AsmLogOrExp | |
parseAsmMulExp | Parses an AsmMulExp | |
parseAsmOrExp | Parses an AsmOrExp | |
parseAsmPrimaryExp | Parses an AsmPrimaryExp | |
parseAsmRelExp | Parses an AsmRelExp | |
parseAsmShiftExp | Parses an AsmShiftExp | |
parseAsmStatement | Parses an AsmStatement | |
parseAsmTypePrefix | Parses an AsmTypePrefix | |
parseAsmUnaExp | Parses an AsmUnaExp | |
parseAsmXorExp | Parses an AsmXorExp | |
parseAssertExpression | Parses an AssertExpression | |
parseAssignExpression | Parses an AssignExpression | |
parseAssocArrayLiteral | Parses an AssocArrayLiteral | |
parseAtAttribute | Parses an AtAttribute | |
parseAttribute | Parses an Attribute | |
parseAttributeDeclaration | Parses an AttributeDeclaration | |
parseAutoDeclaration | Parses an AutoDeclaration | |
parseBlockStatement | Parses a BlockStatement | |
parseBodyStatement | Parses a BodyStatement | |
parseBreakStatement | Parses a BreakStatement | |
parseBaseClass | Parses a BaseClass | |
parseBaseClassList | Parses a BaseClassList | |
parseBasicType | Parses an BuiltinType | |
parseCaseRangeStatement | Parses a CaseRangeStatement | |
parseCaseStatement | Parses an CaseStatement | |
parseCastExpression | Parses a CastExpression | |
parseCastQualifier | Parses a CastQualifier | |
parseCatch | Parses a Catch | |
parseCatches | Parses a Catches | |
parseClassDeclaration | Parses a ClassDeclaration | |
parseCmpExpression | Parses a CmpExpression | |
parseCompileCondition | Parses a CompileCondition | |
parseConditionalDeclaration | Parses a ConditionalDeclaration | |
parseConditionalStatement | Parses a ConditionalStatement | |
parseConstraint | Parses a Constraint | |
parseConstructor | Parses a Constructor | |
parseContinueStatement | Parses an ContinueStatement | |
parseDebugCondition | Parses a DebugCondition | |
parseDebugSpecification | Parses a DebugSpecification | |
parseDeclaration | Parses a Declaration | |
parseDeclarationsAndStatements | Parses DeclarationsAndStatements | |
parseDeclarationOrStatement | Parses a DeclarationOrStatement | |
parseDeclarator | Parses a Declarator | |
parseDefaultStatement | Parses a DefaultStatement | |
parseDeleteExpression | Parses a DeleteExpression | |
parseDeprecated | Parses a Deprecated attribute | |
parseDestructor | Parses a Destructor | |
parseDoStatement | Parses a DoStatement | |
parseEnumBody | Parses an EnumBody | |
parseEnumDeclaration | Parses an EnumDeclaration | |
parseEnumMember | Parses an EnumMember | |
parseEqualExpression | Parses an EqualExpression | |
parseExpression | Parses an Expression | |
parseExpressionStatement | Parses an ExpressionStatement | |
parseFinalSwitchStatement | Parses a FinalSwitchStatement | |
parseFinally | Parses a Finally | |
parseForStatement | Parses a ForStatement | |
parseForeachStatement | Parses a ForeachStatement | |
parseForeachType | Parses a ForeachType | |
parseForeachTypeList | Parses a ForeachTypeList | |
parseFunctionAttribute | Parses a FunctionAttribute | |
parseFunctionBody | Parses a FunctionBody | |
parseFunctionCallExpression | Parses a FunctionCallExpression | |
parseFunctionDeclaration | Parses a FunctionDeclaration | |
parseFunctionLiteralExpression | Parses a FunctionLiteralExpression | |
parseGotoStatement | Parses a GotoStatement | |
parseIdentifierChain | Parses an IdentifierChain | |
parseIdentifierList | Parses an IdentifierList | |
parseIdentifierOrTemplateChain | Parses an IdentifierOrTemplateChain | |
parseIdentifierOrTemplateInstance | Parses an IdentifierOrTemplateInstance | |
parseIdentityExpression | Parses an IdentityExpression | |
parseIfStatement | Parses an IfStatement | |
parseImportBind | Parses an ImportBind | |
parseImportBindings | Parses ImportBindings | |
parseImportDeclaration | Parses an ImportDeclaration | |
parseImportExpression | Parses an ImportExpression | |
parseIndexExpression | Parses an IndexExpression | |
parseInExpression | Parses an InExpression | |
parseInStatement | Parses an InStatement | |
parseInitializer | Parses an Initializer | |
parseInterfaceDeclaration | Parses an InterfaceDeclaration | |
parseInvariant | Parses an Invariant | |
parseIsExpression | Parses an IsExpression | |
parseKeyValuePair | Parses a KeyValuePair | |
parseKeyValuePairs | Parses KeyValuePairs | |
parseLabeledStatement | Parses a LabeledStatement | |
parseLambdaExpression | Parses a LambdaExpression | |
parseLastCatch | Parses a LastCatch | |
parseLinkageAttribute | Parses a LinkageAttribute | |
parseMemberFunctionAttribute | Parses a MemberFunctionAttribute | |
parseMixinDeclaration | Parses a MixinDeclaration | |
parseMixinExpression | Parses a MixinExpression | |
parseMixinTemplateDeclaration | Parses a MixinTemplateDeclaration | |
parseMixinTemplateName | Parses a MixinTemplateName | |
parseModule | Parses a Module | |
parseModuleDeclaration | Parses a ModuleDeclaration | |
parseMulExpression | Parses a MulExpression. | |
parseNewAnonClassExpression | Parses a NewAnonClassExpression | |
parseNewExpression | Parses a NewExpression | |
parseStatementNoCaseNoDefault | Parses a StatementNoCaseNoDefault | |
parseNonVoidInitializer | Parses a NonVoidInitializer | |
parseOperands | Parses Operands | |
parseOrExpression | Parses an OrExpression | |
parseOrOrExpression | Parses an OrOrExpression | |
parseOutStatement | Parses an OutStatement | |
parseParameter | Parses a Parameter | |
parseParameterAttribute | Parses a ParameterAttribute | |
parseParameters | Parses Parameters | |
parsePostblit | Parses a Postblit | |
parsePowExpression | Parses a PowExpression | |
parsePragmaDeclaration | Parses a PragmaDeclaration | |
parsePragmaExpression | Parses a PragmaExpression | |
parsePrimaryExpression | Parses a PrimaryExpression | |
parseRegister | Parses a Register | |
parseRelExpression | Parses a RelExpression | |
parseReturnStatement | Parses a ReturnStatement | |
parseScopeGuardStatement | Parses a ScopeGuardStatement | |
parseSharedStaticConstructor | Parses a SharedStaticConstructor | |
parseSharedStaticDestructor | Parses a SharedStaticDestructor | |
parseShiftExpression | Parses a ShiftExpression | |
parseSingleImport | Parses a SingleImport | |
parseSliceExpression | Parses a SliceExpression | |
parseStatement | Parses a Statement | |
parseStaticAssertDeclaration | Parses a StaticAssertDeclaration | |
parseStaticAssertStatement | Parses a StaticAssertStatement | |
parseStaticConstructor | Parses a StaticConstructor | |
parseStaticDestructor | Parses a StaticDestructor | |
parseStaticIfCondition | Parses an StaticIfCondition | |
parseStorageClass | Parses a StorageClass | |
parseStructBody | Parses a StructBody | |
parseStructDeclaration | Parses a StructDeclaration | |
parseStructInitializer | Parses an StructInitializer | |
parseStructMemberInitializer | Parses a StructMemberInitializer | |
parseStructMemberInitializers | Parses StructMemberInitializers | |
parseSwitchStatement | Parses a SwitchStatement | |
parseSymbol | Parses a Symbol | |
parseSynchronizedStatement | Parses a SynchronizedStatement | |
parseTemplateAliasParameter | Parses a TemplateAliasParameter | |
parseTemplateArgument | Parses a TemplateArgument | |
parseTemplateArgumentList | Parses a TemplateArgumentList | |
parseTemplateArguments | Parses TemplateArguments | |
parseTemplateDeclaration | Parses a TemplateDeclaration | |
parseEponymousTemplateDeclaration | Parses an EponymousTemplateDeclaration | |
parseTemplateInstance | Parses a TemplateInstance | |
parseTemplateMixinExpression | Parses a TemplateMixinExpression | |
parseTemplateParameter | Parses a TemplateParameter | |
parseTemplateParameterList | Parses an TemplateParameterList | |
parseTemplateParameters | Parses TemplateParameters | |
parseTemplateSingleArgument | Parses a TemplateSingleArgument | |
parseTemplateThisParameter | Parses a TemplateThisParameter | |
parseTemplateTupleParameter | Parses an TemplateTupleParameter | |
parseTemplateTypeParameter | Parses a TemplateTypeParameter | |
parseTemplateValueParameter | Parses a TemplateValueParameter | |
parseTemplateValueParameterDefault | Parses a TemplateValueParameterDefault | |
parseTernaryExpression | Parses a TernaryExpression | |
parseThrowStatement | Parses a ThrowStatement | |
parseTraitsExpression | Parses an TraitsExpression | |
parseTryStatement | Parses a TryStatement | |
parseType | Parses a Type | |
parseType2 | Parses a Type2 | |
parseTypeConstructor | Parses a TypeConstructor | |
parseTypeConstructors | Parses TypeConstructors | |
parseTypeSpecialization | Parses a TypeSpecialization | |
parseTypeSuffix | Parses a TypeSuffix | |
parseTypeidExpression | Parses a TypeidExpression | |
parseTypeofExpression | Parses a TypeofExpression | |
parseUnaryExpression | Parses a UnaryExpression | |
parseUnionDeclaration | Parses an UnionDeclaration | |
parseUnittest | Parses a Unittest | |
parseVariableDeclaration | Parses a VariableDeclaration | |
parseVector | Parses a Vector | |
parseVersionCondition | Parses a VersionCondition | |
parseVersionSpecification | Parses a VersionSpecification | |
parseWhileStatement | Parses a WhileStatement | |
parseWithStatement | Parses a WithStatement | |
parseXorExpression | Parses an XorExpression | |
moreTokens | Returns: true if there are more tokens | |
expect | Returns a token of the specified type if it was the next token, otherwise calls the error function and returns null. | |
current | Returns: the _current token | |
advance | Advances to the next token and returns the current token | |
currentIs | Returns: true if the current token has the given type | |
currentIsOneOf | Returns: true if the current token is one of the given types |