Parser

D Parser.

It is sometimes useful to sub-class Parser to skip over things that are not interesting. For example, DCD skips over function bodies when caching symbols from imported files.

class Parser {}

Members

Aliases

Bookmark
alias Bookmark = size_t
Undocumented in source.
messageDg
deprecated alias messageDg = messageDelegate
Undocumented in source.

Enums

DecType
enum DecType
Undocumented in source.

Functions

abandonBookmark
void abandonBookmark(Bookmark )
Undocumented in source. Be warned that the author may not have intended to support it.
advance
Token advance()

Advances to the next token and returns the current token

attachCommentFromSemicolon
T attachCommentFromSemicolon(T node, size_t startIndex)
Undocumented in source. Be warned that the author may not have intended to support it.
current
Token current()
currentIs
bool currentIs(IdType type)
currentIsMemberFunctionAttribute
bool currentIsMemberFunctionAttribute()
Undocumented in source. Be warned that the author may not have intended to support it.
currentIsOneOf
bool currentIsOneOf(IdType[] types)
error
void error(string message, bool shouldAdvance)
Undocumented in source. Be warned that the author may not have intended to support it.
expect
const(Token)* expect(IdType type)
goToBookmark
void goToBookmark(Bookmark bookmark)
Undocumented in source. Be warned that the author may not have intended to support it.
hasMagicDelimiter
bool hasMagicDelimiter()
Undocumented in source. Be warned that the author may not have intended to support it.
isAssociativeArrayLiteral
bool isAssociativeArrayLiteral()
Undocumented in source. Be warned that the author may not have intended to support it.
isAttribute
bool isAttribute()
Undocumented in source. Be warned that the author may not have intended to support it.
isAutoDeclaration
DecType isAutoDeclaration(size_t beginIndex)
Undocumented in source. Be warned that the author may not have intended to support it.
isCastQualifier
bool isCastQualifier()
Undocumented in source. Be warned that the author may not have intended to support it.
isDeclaration
bool isDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
isStorageClass
bool isStorageClass()
Undocumented in source. Be warned that the author may not have intended to support it.
isType
bool isType()

Only use this in template parameter parsing

moreTokens
bool moreTokens()
ownArray
void ownArray(T[] arr, StackBuffer sb)
Undocumented in source. Be warned that the author may not have intended to support it.
parseAddExpression
ExpressionNode parseAddExpression()

Parses an AddExpression.

parseAliasAssign
AliasAssign parseAliasAssign()

Parses an AliasAssign.

parseAliasDeclaration
AliasDeclaration parseAliasDeclaration()

Parses an AliasDeclaration.

parseAliasInitializer
AliasInitializer parseAliasInitializer()

Parses an AliasInitializer.

parseAliasThisDeclaration
AliasThisDeclaration parseAliasThisDeclaration()

Parses an AliasThisDeclaration.

parseAlignAttribute
AlignAttribute parseAlignAttribute()

Parses an AlignAttribute.

parseAndAndExpression
ExpressionNode parseAndAndExpression()

Parses an AndAndExpression.

parseAndExpression
ExpressionNode parseAndExpression()

Parses an AndExpression.

parseAnonymousEnumDeclaration
AnonymousEnumDeclaration parseAnonymousEnumDeclaration()

$(GRAMMAR $(RULEDEF anonymousEnumDeclaration): $(LITERAL 'enum') ($(LITERAL ':') $(RULE type))? $(LITERAL '{') $(RULE anonymousEnumMember)+ $(LITERAL '}') ;)

parseAnonymousEnumMember
AnonymousEnumMember parseAnonymousEnumMember(bool typeAllowed)

$(GRAMMAR $(RULEDEF anonymousEnumMember): $(RULE type) $(LITERAL identifier) $(LITERAL '=') $(RULE assignExpression) | $(LITERAL identifier) $(LITERAL '=') $(RULE assignExpression) | $(LITERAL identifier) ;)

parseArgumentList
ArgumentList parseArgumentList()

Parses an ArgumentList.

parseArguments
Arguments parseArguments()

Parses Arguments.

parseArrayInitializer
ArrayInitializer parseArrayInitializer()

Parses an ArrayInitializer.

parseArrayLiteral
ArrayLiteral parseArrayLiteral()

Parses an ArrayLiteral.

parseArrayMemberInitialization
ArrayMemberInitialization parseArrayMemberInitialization()

Parses an ArrayMemberInitialization.

parseAsmAddExp
ExpressionNode parseAsmAddExp()

Parses an AsmAddExp

parseAsmAndExp
ExpressionNode parseAsmAndExp()

Parses an AsmAndExp

parseAsmBrExp
AsmBrExp parseAsmBrExp()

Parses an AsmBrExp

parseAsmEqualExp
ExpressionNode parseAsmEqualExp()

Parses an AsmEqualExp

parseAsmExp
ExpressionNode parseAsmExp()

Parses an AsmExp

parseAsmInstruction
AsmInstruction parseAsmInstruction(bool maybeGccASm)

Parses an AsmInstruction

parseAsmLogAndExp
ExpressionNode parseAsmLogAndExp()

Parses an AsmLogAndExp

parseAsmLogOrExp
ExpressionNode parseAsmLogOrExp()

Parses an AsmLogOrExp

parseAsmMulExp
ExpressionNode parseAsmMulExp()

Parses an AsmMulExp

parseAsmOrExp
ExpressionNode parseAsmOrExp()

Parses an AsmOrExp

parseAsmPrimaryExp
AsmPrimaryExp parseAsmPrimaryExp()

Parses an AsmPrimaryExp

parseAsmRelExp
ExpressionNode parseAsmRelExp()

Parses an AsmRelExp

parseAsmShiftExp
ExpressionNode parseAsmShiftExp()

Parses an AsmShiftExp

parseAsmStatement
AsmStatement parseAsmStatement()

Parses an AsmStatement

parseAsmTypePrefix
AsmTypePrefix parseAsmTypePrefix()

Parses an AsmTypePrefix

parseAsmUnaExp
AsmUnaExp parseAsmUnaExp()

Parses an AsmUnaExp

parseAsmXorExp
ExpressionNode parseAsmXorExp()

Parses an AsmXorExp

parseAssertArguments
AssertArguments parseAssertArguments()

Parses an AssertArguments

parseAssertExpression
AssertExpression parseAssertExpression()

Parses an AssertExpression

parseAssignExpression
ExpressionNode parseAssignExpression()

Parses an AssignExpression

parseAssocArrayLiteral
AssocArrayLiteral parseAssocArrayLiteral()

Parses an AssocArrayLiteral

parseAtAttribute
AtAttribute parseAtAttribute()

Parses an AtAttribute

parseAttribute
Attribute parseAttribute()

Parses an Attribute

parseAttributeDeclaration
AttributeDeclaration parseAttributeDeclaration(Attribute attribute)

Parses an AttributeDeclaration

parseAutoDeclaration
AutoDeclaration parseAutoDeclaration()

Parses an AutoDeclaration

parseAutoDeclarationPart
AutoDeclarationPart parseAutoDeclarationPart()

Parses an AutoDeclarationPart

parseBaseClass
BaseClass parseBaseClass()

Parses a BaseClass

parseBaseClassList
BaseClassList parseBaseClassList()

Parses a BaseClassList

parseBlockStatement
BlockStatement parseBlockStatement()

Parses a BlockStatement

parseBreakStatement
BreakStatement parseBreakStatement()

Parses a BreakStatement

parseBuiltinType
IdType parseBuiltinType()

Parses an BuiltinType

parseCaseRangeStatement
CaseRangeStatement parseCaseRangeStatement(ExpressionNode low)

Parses a CaseRangeStatement

parseCaseStatement
CaseStatement parseCaseStatement(ArgumentList argumentList)

Parses an CaseStatement

parseCastExpression
CastExpression parseCastExpression()

Parses a CastExpression

parseCastQualifier
CastQualifier parseCastQualifier()

Parses a CastQualifier

parseCatch
Catch parseCatch()

Parses a Catch

parseCatches
Catches parseCatches()

Parses a Catches

parseClassDeclaration
ClassDeclaration parseClassDeclaration()

Parses a ClassDeclaration

parseCmpExpression
ExpressionNode parseCmpExpression()

Parses a CmpExpression

parseCommaSeparatedRule
ListType parseCommaSeparatedRule(bool allowTrailingComma)
Undocumented in source. Be warned that the author may not have intended to support it.
parseCompileCondition
CompileCondition parseCompileCondition()

Parses a CompileCondition

parseConditionalDeclaration
ConditionalDeclaration parseConditionalDeclaration(bool strict, bool inTemplateDeclaration)

Parses a ConditionalDeclaration

parseConditionalStatement
ConditionalStatement parseConditionalStatement()

Parses a ConditionalStatement

parseConstraint
Constraint parseConstraint()

Parses a Constraint

parseConstructor
Constructor parseConstructor()

Parses a Constructor

parseContinueStatement
ContinueStatement parseContinueStatement()

Parses an ContinueStatement

parseDebugCondition
DebugCondition parseDebugCondition()

Parses a DebugCondition

parseDebugSpecification
DebugSpecification parseDebugSpecification()

Parses a DebugSpecification

parseDeclaration
Declaration parseDeclaration(bool strict, bool mustBeDeclaration, bool inTemplateDeclaration)

Parses a Declaration

parseDeclarationOrStatement
DeclarationOrStatement parseDeclarationOrStatement()

Parses a DeclarationOrStatement

parseDeclarationsAndStatements
DeclarationsAndStatements parseDeclarationsAndStatements(bool includeCases)

Parses DeclarationsAndStatements

parseDeclarator
Declarator parseDeclarator()

Parses a Declarator

parseDeclaratorIdentifierList
DeclaratorIdentifierList parseDeclaratorIdentifierList()

Parses a DeclaratorIdentifierList

parseDefaultStatement
DefaultStatement parseDefaultStatement()

Parses a DefaultStatement

parseDeleteExpression
DeleteExpression parseDeleteExpression()

Parses a DeleteExpression

parseDeprecated
Deprecated parseDeprecated()

Parses a Deprecated attribute

parseDestructor
Destructor parseDestructor()

Parses a Destructor

parseDoStatement
DoStatement parseDoStatement()

Parses a DoStatement

parseEnumBody
EnumBody parseEnumBody()

Parses an EnumBody

parseEnumDeclaration
EnumDeclaration parseEnumDeclaration()

Parses an EnumDeclaration

parseEnumMember
EnumMember parseEnumMember()

Parses an EnumMember

parseEnumMemberAttribute
EnumMemberAttribute parseEnumMemberAttribute()

Parses an EnumMemberAttribute

parseEponymousTemplateDeclaration
EponymousTemplateDeclaration parseEponymousTemplateDeclaration()

Parses an EponymousTemplateDeclaration

parseEqualExpression
EqualExpression parseEqualExpression(ExpressionNode shift)

Parses an EqualExpression

parseExpression
Expression parseExpression()

Parses an Expression

parseExpressionStatement
ExpressionStatement parseExpressionStatement(Expression expression)

Parses an ExpressionStatement

parseFinalSwitchStatement
FinalSwitchStatement parseFinalSwitchStatement()

Parses a FinalSwitchStatement

parseFinally
Finally parseFinally()

Parses a Finally

parseForStatement
ForStatement parseForStatement()

Parses a ForStatement

parseForeach
Foreach!declOnly parseForeach(bool inTemplateDeclaration)
Undocumented in source. Be warned that the author may not have intended to support it.
parseForeachStatement
ForeachStatement parseForeachStatement()

Parses a ForeachStatement

parseForeachType
ForeachType parseForeachType()

Parses a ForeachType

parseForeachTypeList
ForeachTypeList parseForeachTypeList()

Parses a ForeachTypeList

parseFunctionAttribute
FunctionAttribute parseFunctionAttribute(bool validate)

Parses a FunctionAttribute

parseFunctionBody
FunctionBody parseFunctionBody()

Parses a FunctionBody. Note that any change of this function must also be applied in dsymbol SimpleParser, which can be found here.

parseFunctionCallExpression
FunctionCallExpression parseFunctionCallExpression(UnaryExpression unary)

Parses a FunctionCallExpression

parseFunctionContract
FunctionContract parseFunctionContract()

Parses a FunctionContract

parseFunctionDeclaration
FunctionDeclaration parseFunctionDeclaration(Type type, bool isAuto, Attribute[] attributes)

Parses a FunctionDeclaration

parseFunctionLiteralExpression
FunctionLiteralExpression parseFunctionLiteralExpression()

Parses a FunctionLiteralExpression

parseGccAsmInstruction
GccAsmInstruction parseGccAsmInstruction()

Parses an AsmInstruction using GCC Assembler

parseGccAsmOperand
GccAsmOperand parseGccAsmOperand()

Parses a GccAsmOperand

parseGccAsmOperandList
GccAsmOperandList parseGccAsmOperandList()

Parses a GccAsmOperandList

parseGotoStatement
GotoStatement parseGotoStatement()

Parses a GotoStatement

parseIdentifierChain
IdentifierChain parseIdentifierChain()

Parses an IdentifierChain

parseIdentifierOrTemplateChain
IdentifierOrTemplateChain parseIdentifierOrTemplateChain()

Parses an IdentifierOrTemplateChain

parseIdentifierOrTemplateInstance
IdentifierOrTemplateInstance parseIdentifierOrTemplateInstance()

Parses an IdentifierOrTemplateInstance

parseIdentityExpression
ExpressionNode parseIdentityExpression(ExpressionNode shift)

Parses an IdentityExpression

parseIfStatement
IfStatement parseIfStatement()

Parses an IfStatement

parseImportBind
ImportBind parseImportBind()

Parses an ImportBind

parseImportBindings
ImportBindings parseImportBindings(SingleImport singleImport)

Parses ImportBindings

parseImportDeclaration
ImportDeclaration parseImportDeclaration()

Parses an ImportDeclaration

parseImportExpression
ImportExpression parseImportExpression()

Parses an ImportExpression

parseInContractExpression
InContractExpression parseInContractExpression()

Parses an InContractExpression

parseInExpression
ExpressionNode parseInExpression(ExpressionNode shift)

Parses an InExpression

parseInOutContractExpression
InOutContractExpression parseInOutContractExpression()

Parses an InOutContractExpression

parseInOutStatement
InOutStatement parseInOutStatement()

Parses an InOutStatement

parseInStatement
InStatement parseInStatement()

Parses an InStatement

parseIndex
Index parseIndex()

Parses an Index

parseIndexExpression
IndexExpression parseIndexExpression(UnaryExpression unaryExpression)

Parses an IndexExpression

parseInitializer
Initializer parseInitializer()

Parses an Initializer

parseInterfaceDeclaration
InterfaceDeclaration parseInterfaceDeclaration()

Parses an InterfaceDeclaration

parseInterfaceOrClass
N parseInterfaceOrClass(N node, size_t startIndex)
Undocumented in source. Be warned that the author may not have intended to support it.
parseInvariant
Invariant parseInvariant()

Parses an Invariant

parseIsExpression
IsExpression parseIsExpression()

Parses an IsExpression

parseKeyValuePair
KeyValuePair parseKeyValuePair()

Parses a KeyValuePair

parseKeyValuePairs
KeyValuePairs parseKeyValuePairs()

Parses KeyValuePairs

parseLabeledStatement
LabeledStatement parseLabeledStatement()

Parses a LabeledStatement

parseLastCatch
LastCatch parseLastCatch()

Parses a LastCatch

parseLeftAssocBinaryExpression
ExpressionNode parseLeftAssocBinaryExpression(ExpressionNode part)
Undocumented in source. Be warned that the author may not have intended to support it.
parseLinkageAttribute
LinkageAttribute parseLinkageAttribute()

Parses a LinkageAttribute

parseMemberFunctionAttribute
MemberFunctionAttribute parseMemberFunctionAttribute()

Parses a MemberFunctionAttribute

parseMissingFunctionBody
MissingFunctionBody parseMissingFunctionBody()

Parses a MissingFunctionBody

parseMixinDeclaration
MixinDeclaration parseMixinDeclaration()

Parses a MixinDeclaration

parseMixinExpression
MixinExpression parseMixinExpression()

Parses a MixinExpression

parseMixinTemplateDeclaration
MixinTemplateDeclaration parseMixinTemplateDeclaration()

Parses a MixinTemplateDeclaration

parseMixinTemplateName
MixinTemplateName parseMixinTemplateName()

Parses a MixinTemplateName

parseModule
Module parseModule()

Parses a Module

parseModuleDeclaration
ModuleDeclaration parseModuleDeclaration()

Parses a ModuleDeclaration

parseMulExpression
ExpressionNode parseMulExpression()

Parses a MulExpression.

parseNamespaceList
NamespaceList parseNamespaceList()

Parses a NamespaceList.

parseNewAnonClassExpression
NewAnonClassExpression parseNewAnonClassExpression()

Parses a NewAnonClassExpression

parseNewExpression
NewExpression parseNewExpression()

Parses a NewExpression

parseNonVoidInitializer
NonVoidInitializer parseNonVoidInitializer()

Parses a NonVoidInitializer

parseOperands
Operands parseOperands()

Parses Operands

parseOrExpression
ExpressionNode parseOrExpression()

Parses an OrExpression

parseOrOrExpression
ExpressionNode parseOrOrExpression()

Parses an OrOrExpression

parseOutContractExpression
OutContractExpression parseOutContractExpression()

Parses an OutContractExpression

parseOutStatement
OutStatement parseOutStatement()

Parses an OutStatement

parseParameter
Parameter parseParameter()

Parses a Parameter

parseParameterAttribute
ParameterAttribute parseParameterAttribute(bool validate)

Parses a ParameterAttribute

parseParameters
Parameters parseParameters()

Parses Parameters

parsePostblit
Postblit parsePostblit()

Parses a Postblit

parsePowExpression
ExpressionNode parsePowExpression()

Parses a PowExpression

parsePragmaDeclaration
PragmaDeclaration parsePragmaDeclaration()

Parses a PragmaDeclaration

parsePragmaExpression
PragmaExpression parsePragmaExpression()

Parses a PragmaExpression

parsePragmaStatement
PragmaStatement parsePragmaStatement()

Parses a PragmaStatement

parsePrimaryExpression
PrimaryExpression parsePrimaryExpression()

Parses a PrimaryExpression

parseRegister
Register parseRegister()

Parses a Register

parseRelExpression
ExpressionNode parseRelExpression(ExpressionNode shift)

Parses a RelExpression

parseReturnStatement
ReturnStatement parseReturnStatement()

Parses a ReturnStatement

parseScopeGuardStatement
ScopeGuardStatement parseScopeGuardStatement()

Parses a ScopeGuardStatement

parseSharedStaticConstructor
SharedStaticConstructor parseSharedStaticConstructor()

Parses a SharedStaticConstructor

parseSharedStaticDestructor
SharedStaticDestructor parseSharedStaticDestructor()

Parses a SharedStaticDestructor

parseShiftExpression
ExpressionNode parseShiftExpression()

Parses a ShiftExpression

parseSingleImport
SingleImport parseSingleImport()

Parses a SingleImport

parseSpecifiedFunctionBody
SpecifiedFunctionBody parseSpecifiedFunctionBody()

Parses a SpecifiedFunctionBody

parseStatement
Statement parseStatement()

Parses a Statement

parseStatementNoCaseNoDefault
StatementNoCaseNoDefault parseStatementNoCaseNoDefault()

Parses a StatementNoCaseNoDefault

parseStaticAssertDeclaration
StaticAssertDeclaration parseStaticAssertDeclaration()

Parses a StaticAssertDeclaration

parseStaticAssertStatement
StaticAssertStatement parseStaticAssertStatement()

Parses a StaticAssertStatement

parseStaticConstructor
StaticConstructor parseStaticConstructor()

Parses a StaticConstructor

parseStaticCtorDtorCommon
N parseStaticCtorDtorCommon(N node, size_t startIndex)
Undocumented in source. Be warned that the author may not have intended to support it.
parseStaticDestructor
StaticDestructor parseStaticDestructor()

Parses a StaticDestructor

parseStaticForeachDeclaration
StaticForeachDeclaration parseStaticForeachDeclaration(bool inTemplateDeclaration)

Parses a StaticForeachDeclaration

parseStaticForeachStatement
StaticForeachStatement parseStaticForeachStatement()

Parses a StaticForeachStatement

parseStaticIfCondition
StaticIfCondition parseStaticIfCondition()

Parses an StaticIfCondition

parseStorageClass
StorageClass parseStorageClass()

Parses a StorageClass

parseStructBody
StructBody parseStructBody()

Parses a StructBody

parseStructDeclaration
StructDeclaration parseStructDeclaration()

Parses a StructDeclaration

parseStructInitializer
StructInitializer parseStructInitializer()

Parses an StructInitializer

parseStructMemberInitializer
StructMemberInitializer parseStructMemberInitializer()

Parses a StructMemberInitializer

parseStructMemberInitializers
StructMemberInitializers parseStructMemberInitializers()

Parses StructMemberInitializers

parseSwitchStatement
SwitchStatement parseSwitchStatement()

Parses a SwitchStatement

parseSymbol
Symbol parseSymbol()

Parses a Symbol

parseSynchronizedStatement
SynchronizedStatement parseSynchronizedStatement()

Parses a SynchronizedStatement

parseTemplateAliasParameter
TemplateAliasParameter parseTemplateAliasParameter()

Parses a TemplateAliasParameter

parseTemplateArgument
TemplateArgument parseTemplateArgument()

Parses a TemplateArgument

parseTemplateArgumentList
TemplateArgumentList parseTemplateArgumentList()

Parses a TemplateArgumentList

parseTemplateArguments
TemplateArguments parseTemplateArguments()

Parses TemplateArguments

parseTemplateDeclaration
TemplateDeclaration parseTemplateDeclaration()

Parses a TemplateDeclaration

parseTemplateInstance
TemplateInstance parseTemplateInstance()

Parses a TemplateInstance

parseTemplateMixinExpression
TemplateMixinExpression parseTemplateMixinExpression()

Parses a TemplateMixinExpression

parseTemplateParameter
TemplateParameter parseTemplateParameter()

Parses a TemplateParameter

parseTemplateParameterList
TemplateParameterList parseTemplateParameterList()

Parses a TemplateParameterList

parseTemplateParameters
TemplateParameters parseTemplateParameters()

Parses TemplateParameters

parseTemplateSingleArgument
TemplateSingleArgument parseTemplateSingleArgument()

Parses a TemplateSingleArgument

parseTemplateThisParameter
TemplateThisParameter parseTemplateThisParameter()

Parses a TemplateThisParameter

parseTemplateTupleParameter
TemplateTupleParameter parseTemplateTupleParameter()

Parses an TemplateTupleParameter

parseTemplateTypeParameter
TemplateTypeParameter parseTemplateTypeParameter()

Parses a TemplateTypeParameter

parseTemplateValueParameter
TemplateValueParameter parseTemplateValueParameter()

Parses a TemplateValueParameter

parseTemplateValueParameterDefault
TemplateValueParameterDefault parseTemplateValueParameterDefault()

Parses a TemplateValueParameterDefault

parseTernaryExpression
ExpressionNode parseTernaryExpression()

Parses a TernaryExpression

parseThrowStatement
ThrowStatement parseThrowStatement()

Parses a ThrowStatement

parseTraitsExpression
TraitsExpression parseTraitsExpression()

Parses an TraitsExpression

parseTryStatement
TryStatement parseTryStatement()

Parses a TryStatement

parseType
Type parseType()

Parses a Type

parseType2
Type2 parseType2()

Parses a Type2

parseTypeConstructor
IdType parseTypeConstructor(bool validate)

Parses a TypeConstructor

parseTypeConstructors
IdType[] parseTypeConstructors()

Parses TypeConstructors

parseTypeIdentifierPart
TypeIdentifierPart parseTypeIdentifierPart()

Parses a TypeIdentifierPart.

parseTypeSpecialization
TypeSpecialization parseTypeSpecialization()

Parses a TypeSpecialization

parseTypeSuffix
TypeSuffix parseTypeSuffix()

Parses a TypeSuffix

parseTypeidExpression
TypeidExpression parseTypeidExpression()

Parses a TypeidExpression

parseTypeofExpression
TypeofExpression parseTypeofExpression()

Parses a TypeofExpression

parseUnaryExpression
UnaryExpression parseUnaryExpression()

Parses a UnaryExpression

parseUnionDeclaration
UnionDeclaration parseUnionDeclaration()

Parses an UnionDeclaration

parseUnittest
Unittest parseUnittest()

Parses a Unittest

parseVariableDeclaration
VariableDeclaration parseVariableDeclaration(Type type, bool isAuto)

Parses a VariableDeclaration

parseVariadicArgumentsAttribute
ParameterAttribute parseVariadicArgumentsAttribute()

Parses an attribute of C-style variadic parameters.

parseVariadicArgumentsAttributes
ParameterAttribute[] parseVariadicArgumentsAttributes()

Parses attributes of C-style variadic parameters.

parseVector
Vector parseVector()

Parses a Vector

parseVersionCondition
VersionCondition parseVersionCondition()

Parses a VersionCondition

parseVersionSpecification
VersionSpecification parseVersionSpecification()

Parses a VersionSpecification

parseWhileStatement
WhileStatement parseWhileStatement()

Parses a WhileStatement

parseWithStatement
WithStatement parseWithStatement()

Parses a WithStatement

parseXorExpression
ExpressionNode parseXorExpression()

Parses an XorExpression

peek
const(Token)* peek()
peekAre
bool peekAre(IdType[] types)
peekIs
bool peekIs(IdType t)
peekIsOneOf
bool peekIsOneOf(IdType[] types)
peekNIs
bool peekNIs(IdType t, size_t offset)
peekNIsOneOf
bool peekNIsOneOf(size_t offset, IdType[] types)
peekPast
const(Token)* peekPast()
Undocumented in source. Be warned that the author may not have intended to support it.
peekPastBraces
const(Token)* peekPastBraces()
peekPastBrackets
const(Token)* peekPastBrackets()
peekPastParens
const(Token)* peekPastParens()
previous
Token previous()
setBookmark
Bookmark setBookmark()
Undocumented in source. Be warned that the author may not have intended to support it.
setTokens
void setTokens(const(Token)[] tokens)
Undocumented in source. Be warned that the author may not have intended to support it.
skip
bool skip(IdType token)

Skips token if present and returns whether token was skipped

skip
void skip()
Undocumented in source. Be warned that the author may not have intended to support it.
skipBraces
void skipBraces()
Undocumented in source. Be warned that the author may not have intended to support it.
skipBrackets
void skipBrackets()
Undocumented in source. Be warned that the author may not have intended to support it.
skipParens
void skipParens()
Undocumented in source. Be warned that the author may not have intended to support it.
startsWith
bool startsWith(IdType[] types)
suppressedErrorCount
uint suppressedErrorCount()
Undocumented in source. Be warned that the author may not have intended to support it.
trace
void trace(string message)
Undocumented in source. Be warned that the author may not have intended to support it.
trace
void trace(string )
Undocumented in source. Be warned that the author may not have intended to support it.
warn
void warn(string message)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

MAX_ERRORS
enum MAX_ERRORS;
Undocumented in source.

Static functions

isMemberFunctionAttribute
bool isMemberFunctionAttribute(IdType t)
Undocumented in source. Be warned that the author may not have intended to support it.
isTypeCtor
bool isTypeCtor(IdType t)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

REGISTER_NAMES
string[] REGISTER_NAMES;
Undocumented in source.

Templates

nullCheck
template nullCheck(string exp)
Undocumented in source.
parseNodeQ
template parseNodeQ(string VarName, string NodeName)
Undocumented in source.
simpleParse
template simpleParse(NodeType, parts...)
Undocumented in source.
simpleParseItem
template simpleParseItem(alias item)
Undocumented in source.
simpleParseItems
template simpleParseItems(items...)
Undocumented in source.
tokenCheck
template tokenCheck(string Tok)
Undocumented in source.
tokenCheck
template tokenCheck(string Exp, string Tok)
Undocumented in source.
traceEnterAndExit
template traceEnterAndExit(string fun)
Undocumented in source.

Variables

_traceDepth
int _traceDepth;
Undocumented in source.
allocator
RollbackAllocator* allocator;

Allocator used for creating AST nodes

cachedAAChecks
bool[typeof(Token.index)] cachedAAChecks;
Undocumented in source.
cachedTypeChecks
bool[typeof(Token.index)] cachedTypeChecks;
Undocumented in source.
comment
string comment;
Undocumented in source.
errorCount
uint errorCount;

Current error count

fileName
string fileName;

Name used when reporting warnings and errors

index
size_t index;
Undocumented in source.
messageDelegate
MessageDelegate messageDelegate;

Function or delegate 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.

messageFunction
MessageFunction messageFunction;

Function or delegate 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.

suppressMessages
uint[] suppressMessages;
Undocumented in source.
tokens
const(Token)[] tokens;

Tokens to parse

warningCount
uint warningCount;

Current warning count

Meta