ParserConfig

Parser configuration struct

Members

Variables

allocator
RollbackAllocator* allocator;

A pointer to a rollback allocator.

errorCount
uint* errorCount;

An optional pointer to a variable receiving the error count.

fileName
string fileName;

The name of the file being parsed

messageDelegate
MessageDelegate messageDelegate;

An optional delegate used to handle warnings and errors. Set either this one or messageFunction, not both.

messageFunction
MessageFunction messageFunction;

An optional function used to handle warnings and errors.

tokens
const(Token)[] tokens;

The tokens parsed by dparse.lexer.

warningCount
uint* warningCount;

An optional pointer to a variable receiving the warning count.

Meta