public Module parseModule(const(Token)[] tokens, string fileName, CAllocator allocator = null, void function(string, size_t, size_t, string, bool) messageFunction = null)

Parameters

tokensthe tokens parsed by std.d.lexer
fileNamethe name of the file being parsed
messageFunctiona 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).

Returns

the parsed module