parseModule - multiple declarations

Function parseModule

Module parseModule (
  auto ref ParserConfig parserConfig
);

Parameters

NameDescription
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

NameDescription
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.