ConfigLoader

Loads the configuration file of DIL.

Constructors

this
this(CompilationContext cc, Diagnostics diag, cstring arg0)

Constructs a ConfigLoader object.

Members

Functions

findConfigurationFilePath
cstring findConfigurationFilePath()

Searches for the configuration file of DIL.

load
void load()

Loads the configuration file.

loadResource
ResourceBundle loadResource(cstring langFile)

Loads a language file and returns a ResouceBundle object.

normalize
cstring normalize(cstring path)

Returns a normalized path.

Static functions

expandVariables
cstring expandVariables(cstring str)

Expands environment variables such as ${HOME} in a string.

Static variables

configFileName
cstring configFileName;

Name of the configuration file.

Variables

dataDir
cstring dataDir;

Absolute path to DIL's data directory.

dilconfPath
cstring dilconfPath;

Path to dilconf.d to be used.

executableDir
cstring executableDir;

Absolute path to the directory of DIL's executable.

executablePath
cstring executablePath;

Absolute path to DIL's executable.

homePath
cstring homePath;

Path to the home directory.

resourceBundle
ResourceBundle resourceBundle;

A bundle for compiler messages.

Inherited Members

From SettingsLoader

diag
Diagnostics diag;

Collects error messages.

mod
Module mod;

Current module.

cc
CompilationContext cc;

The context.

error
void error(Token* token, cstring formatMsg, ...)

Creates an error report.

Meta