parseModule

fnModule parseModule()(auto ref ParserConfig parserConfig)

Parameters

parserConfiga parser configuration.

Returns

The parsed module.
fnModule parseModule(F)(const(Token)[] tokens, string fileName, RollbackAllocator * allocator, F messageFuncOrDg = null, uint * errorCount = null, uint * warningCount = null)

Parameters

tokensThe tokens parsed by dparse.lexer.
fileNameThe name of the file being parsed.
allocatorA pointer to a rollback allocator.
messageFuncOrDgEither a function or a delegate that receives the parser messages.
errorCountAn optional pointer to a variable receiving the error count.
warningCountAn optional pointer to a variable receiving the warning count.

Returns

The parsed module.