parseModule

Parse a module from a string.

Tuple!(Module, "module_", Diagnostics, "diagnostics")
parseModule
(
AST = ASTCodegen
)
(
const(char)[] fileName
,
const(char)[] code = null
)

Parameters

fileName const(char)[]

file to parse

code const(char)[]

text to use instead of opening the file

Return Value

Type: Tuple!(Module, "module_", Diagnostics, "diagnostics")

the parsed module object

Meta