parseModule
fn
Module parseModule()(auto ref ParserConfig parserConfig)Parameters
parserConfig | a parser configuration. |
Returns
The parsed module.
fn
Module parseModule(F)(const(Token)[] tokens, string fileName, RollbackAllocator * allocator,
F messageFuncOrDg = null, uint * errorCount = null, uint * warningCount = null)Parameters
tokens | The tokens parsed by dparse.lexer. |
fileName | The name of the file being parsed. |
allocator | A pointer to a rollback allocator. |
messageFuncOrDg | Either a function or a delegate that receives the parser messages. |
errorCount | An optional pointer to a variable receiving the error count. |
warningCount | An optional pointer to a variable receiving the warning count. |
Returns
The parsed module.