parseModule

  1. Module parseModule(ParserConfig parserConfig)
  2. Module parseModule(const(Token)[] tokens, string fileName, RollbackAllocator* allocator, F messageFuncOrDg, uint* errorCount, uint* warningCount)
    parseModule
    (
    F
    )
    (
    const(Token)[] tokens
    ,
    string fileName
    ,,
    F messageFuncOrDg = null
    ,
    uint* errorCount = null
    ,
    uint* warningCount = null
    )

Parameters

tokens const(Token)[]

The tokens parsed by dparse.lexer.

fileName string

The name of the file being parsed.

allocator RollbackAllocator*

A pointer to a rollback allocator.

messageFuncOrDg F

Either a function or a delegate that receives the parser messages.

errorCount uint*

An optional pointer to a variable receiving the error count.

warningCount uint*

An optional pointer to a variable receiving the warning count.

Return Value

Type: Module

The parsed module.

Meta