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.

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

allocate
T allocate(Args args)
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)
deallocate
void deallocate(T t)
Undocumented in source. Be warned that the author may not have intended to support it.
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)

Returns a token of the specified type if it was the next token, otherwise calls the error function and returns null. Advances the lexer by one token.

goToBookmark
void goToBookmark(Bookmark bookmark)
Undocumented in source. Be warned that the author may not have intended to support it.
hackFunctionBody
void hackFunctionBody()
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.
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
T[] ownArray(T[] from)
Undocumented in source. Be warned that the author may not have intended to support it.
parseAddExpression
ExpressionNode parseAddExpression()

Parses an AddExpression.

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()

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

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

parseBaseClass
BaseClass parseBaseClass()

Parses a BaseClass

parseBaseClassList
BaseClassList parseBaseClassList()

Parses a BaseClassList

parseBlockStatement
BlockStatement parseBlockStatement()

Parses a BlockStatement

parseBodyDoStatement
BodyStatement parseBodyDoStatement()
Undocumented in source. Be warned that the author may not have intended to support it.
parseBodyStatement
BodyStatement parseBodyStatement()

Parses a BodyStatement

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()

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)

Parses a Declaration

parseDeclarationOrStatement
DeclarationOrStatement parseDeclarationOrStatement()

Parses a DeclarationOrStatement

parseDeclarationsAndStatements
DeclarationsAndStatements parseDeclarationsAndStatements()

Parses DeclarationsAndStatements

parseDeclarator
Declarator parseDeclarator()

Parses a Declarator

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

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

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

parseFunctionCallExpression
FunctionCallExpression parseFunctionCallExpression(UnaryExpression unary)

Parses a FunctionCallExpression

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

Parses a FunctionDeclaration

parseFunctionLiteralExpression
FunctionLiteralExpression parseFunctionLiteralExpression()

Parses a FunctionLiteralExpression

parseGotoStatement
GotoStatement parseGotoStatement()

Parses a GotoStatement

parseIdentifierChain
IdentifierChain parseIdentifierChain()

Parses an IdentifierChain

parseIdentifierList
IdentifierList parseIdentifierList()

Parses an IdentifierList

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

parseInExpression
ExpressionNode parseInExpression(ExpressionNode shift)

Parses an InExpression

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

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

parseLambdaExpression
LambdaExpression parseLambdaExpression()

Parses a LambdaExpression

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

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.

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

parseOutStatement
OutStatement parseOutStatement()

Parses an OutStatement

parseParameter
Parameter parseParameter()

Parses a Parameter

parseParameterAttribute
IdType 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

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

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

parseStaticDestructor
StaticDestructor parseStaticDestructor()

Parses a StaticDestructor

parseStaticForeachDeclaration
StaticForeachDeclaration parseStaticForeachDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
parseStaticForeachStatement
StaticForeachStatement parseStaticForeachStatement()
Undocumented in source. Be warned that the author may not have intended to support it.
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 an 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

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, Attribute[] attributes, bool isEnum)

Parses a VariableDeclaration

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()
Undocumented in source. Be warned that the author may not have intended to support it.
peekIs
bool peekIs(IdType t)
Undocumented in source. Be warned that the author may not have intended to support it.
peekIsOneOf
bool peekIsOneOf(IdType[] types)
Undocumented in source. Be warned that the author may not have intended to support it.
peekPast
const(Token)* peekPast()
Undocumented in source. Be warned that the author may not have intended to support it.
peekPastBraces
const(Token)* peekPastBraces()
Undocumented in source. Be warned that the author may not have intended to support it.
peekPastBrackets
const(Token)* peekPastBrackets()
Undocumented in source. Be warned that the author may not have intended to support it.
peekPastParens
const(Token)* peekPastParens()
Undocumented in source. Be warned that the author may not have intended to support it.
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
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)
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 variables

REGISTER_NAMES
string[] REGISTER_NAMES;
Undocumented in source.

Templates

expectSequence
template expectSequence(sequence...)
Undocumented in source.
nullCheck
template nullCheck(string exp)
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 exp, string tok)
Undocumented in source.
traceEnterAndExit
template traceEnterAndExit(string fun)
Undocumented in source.

Variables

BUILTIN_TYPE_CASES
enum string BUILTIN_TYPE_CASES;
Undocumented in source.
LITERAL_CASES
enum string LITERAL_CASES;
Undocumented in source.
PARSE_INTERFACE_OR_CLASS
enum string PARSE_INTERFACE_OR_CLASS;
Undocumented in source.
SPECIAL_CASES
enum string SPECIAL_CASES;
Undocumented in source.
_traceDepth
int _traceDepth;
Undocumented in source.
allocator
IAllocator allocator;

Allocator used for creating AST nodes

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.
messageFunction
void function(string, size_t, size_t, string, bool) 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.

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

Current warning count

Meta