parseModule - multiple declarations
Function parseModule
Parameters
| Name | Description |
|---|---|
| parserConfig | a parser configuration. |
Returns
The parsed module.
Function parseModule
Module parseModule(F)(
const(Token)[] tokens,
string fileName,
RollbackAllocator* allocator,
F messageFuncOrDg = null,
uint* errorCount = null,
uint* warningCount = null
);
Parameters
| Name | Description |
|---|---|
| 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.