- addImport
void addImport(const(char)[] path)
Add import path to the global.path.
- addStringImport
void addStringImport(const(char)[] path)
Add string import path to global.filePath.
- deinitializeDMD
void deinitializeDMD()
Deinitializes the global variables of the DMD compiler.
- determineDefaultCompiler
string determineDefaultCompiler()
Detect the currently active compiler.
- findConfigFilename
string findConfigFilename(string compilerPath)
Undocumented in source.
- findDMDConfig
string findDMDConfig(const(char)[] dmdFilePath)
- findImportPaths
auto findImportPaths(string configFilename)
Finds a dmd.conf and parses it for import paths.
This depends on the $DMD environment variable.
If $DMD is set to ldmd, it will try to detect and parse a ldc2.conf instead.
- findLDCConfig
string findLDCConfig(const(char)[] ldcFilePath)
Searches for a ldc2.conf.
- fullSemantic
void fullSemantic(Module m)
Run full semantic analysis on a module.
- initDMD
void initDMD(DiagnosticHandler handler, string[] versionIdentifiers, ContractChecks contractChecks, Target.Architecture architecture)
Undocumented in source. Be warned that the author may not have intended to support it.
- initializeStaticData
void initializeStaticData(Param params)
Undocumented in source. Be warned that the author may not have intended to support it.
- parseImportPathsFromConfig
auto parseImportPathsFromConfig(const(char)[] iniFile, const(char)[] execDir)
Parses a dmd.conf or ldc2.conf config file and returns defined import paths.
- parseModule
Tuple!(Module, "module_", Diagnostics, "diagnostics") parseModule(const(char)[] fileName, const(char)[] code)
Parse a module from a string.
- prettyPrint
string prettyPrint(Module m)
- setContractChecks
void setContractChecks(ContractChecks contractChecks, Param params)
Undocumented in source. Be warned that the author may not have intended to support it.
- setTarget
void setTarget(Param params, Target.Architecture architecture)
Undocumented in source. Be warned that the author may not have intended to support it.
- setVersionIdentifiers
void setVersionIdentifiers(string[] versionIdentifiers, Param params)
Undocumented in source. Be warned that the author may not have intended to support it.
Contains high-level interfaces for interacting with DMD as a library.