Struct ParserConfig

Parser configuration struct

struct ParserConfig ;

Fields

NameTypeDescription
allocator RollbackAllocator*A pointer to a rollback allocator.
errorCount uint*An optional pointer to a variable receiving the error count.
fileName stringThe 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,"\x0a string comment;\x0a string trailingComment;\x0a\x0a int opCmp(size_t i) const pure nothrow @safe {\x0a if (index < i) return -1;\x0a if (index > i) return 1;\x0a return 0;\x0a }\x0a\x0a int opCmp(ref const typeof(this) other) const pure nothrow @safe {\x0a return opCmp(other.index);\x0a }\x0a"))[]The tokens parsed by dparse.lexer.
warningCount uint*An optional pointer to a variable receiving the warning count.