dilconf

The configuration file of DIL.

The file is searched for in the following order:

  1. The file path set in the environment variable DILCONF.
  2. The current working directory.
  3. The directory set in the environment variable HOME.
  4. The executable's directory.
  5. The /etc directory on Linux.

The program will fail with an error msg if this file couldn't be found.

Any environment variable used inside a string is expanded to its value. The variables BINDIR and DATADIR are set by DIL. Examples:

  • ${HOME} -> the home directory (e.g. "/home/name" or "C:\Documents and Settings\name").
  • ${BINDIR} -> the absolute path to the executable's directory (e.g. "/home/name/dil/bin" or "C:\dil\bin").
  • ${DATADIR} -> the data directory of DIL (e.g. "/home/name/dil/data" or "C:\dil\data").

Relative paths are resolved and made absolute using the current working directory.

Members

Variables

DATADIR
var DATADIR;

Files needed by DIL are located in this directory.

DDOC_FILES
var DDOC_FILES;

DDoc macro file paths.

HTML_MAP
var HTML_MAP;

Path to the html map.

IMPORT_PATHS
var IMPORT_PATHS;

An array of import paths to look for modules./// E.g.: ["src/", "import/"]

KANDILDIR
var KANDILDIR;

Path to the files of kandil.

LANG_FILE
var LANG_FILE;

Path to the language file.

LEXER_ERROR
var LEXER_ERROR;
PARSER_ERROR
var PARSER_ERROR;
SEMANTIC_ERROR
var SEMANTIC_ERROR;

Customizable formats for error messages.

TAB_WIDTH
var TAB_WIDTH;

The width of the tabulator character set in your editor.

VERSION_IDS
var VERSION_IDS;

Predefined version identifiers.

XML_MAP
var XML_MAP;

Path to the xml map.

Meta