Struct ParserConfig
Parser configuration struct
struct ParserConfig
;
Fields
Name | Type | Description |
---|---|---|
allocator
|
RollbackAllocator* | A pointer to a rollback allocator. |
errorCount
|
uint* | An optional pointer to a variable receiving the error count. |
fileName
|
string | The name of the file being parsed |
messageDelegate
|
void delegate(string, ulong, ulong, string, bool) | An optional delegate used to handle warnings and errors. Set either this one or messageFunction, not both. |
messageFunction
|
void function(string, ulong, ulong, string, bool) | An optional function used to handle warnings and errors. |
tokens
|
const(TokenStructure!(ubyte,"import dparse.lexer:TokenTriviaFields,TriviaToken; mixin TokenTriviaFields;"))[] | The tokens parsed by dparse.lexer. |
warningCount
|
uint* | An optional pointer to a variable receiving the warning count. |