parseModule

  1. Module parseModule(const(Token)[] tokens, string fileName, RollbackAllocator* allocator, void delegate(string, size_t, size_t, string, bool) messageFunction, uint* errorCount, uint* warningCount)
    parseModule
    (
    const(Token)[] tokens
    ,
    string fileName
    ,,
    void delegate
    (
    string
    ,
    size_t
    ,
    size_t
    ,
    string
    ,
    bool
    )
    messageFunction = null
    ,
    uint* errorCount = null
    ,
    uint* warningCount = null
    )
  2. Module parseModule(const(Token)[] tokens, string fileName, RollbackAllocator* allocator, void function(string, size_t, size_t, string, bool) messageFunction, uint* errorCount, uint* warningCount)

Parameters

tokens const(Token)[]

the tokens parsed by dparse.lexer

fileName string

the name of the file being parsed

messageFunction void delegate
(
string
,
size_t
,
size_t
,
string
,
bool
)

a function to call on error or warning messages. The parameters are the file name, line number, column number, the error or warning message, and a boolean (true means error, false means warning).

Return Value

Type: Module

the parsed module

Meta