1 /// The configuration file of dil.
3 /// The file is searched for in the following order:
5 /// $(LI The file path set in the environment variable DILCONF.)
6 /// $(LI The current working directory.)
7 /// $(LI The directory set in the environment variable HOME.)
8 /// $(LI The executable's directory.)
10 /// The program will fail with an error msg if this file couldn't be found.$(BR)
12 /// Any environment variable used inside a string is expanded to its value.
13 /// The variables BINDIR and DATADIR are set by dil. Examples:
15 /// $(LI ${HOME} -> the home directory (e.g. "/home/name" or "C:\Documents and Settings\name").)
16 /// $(LI ${BINDIR} -> the absolute path to the executable's directory (e.g. "/home/name/dil/bin" or "C:\dil\bin").)
17 /// $(LI ${DATADIR} -> the data directory of dil (e.g. "/home/name/dil/data" or "C:\dil\data").)
20 /// Relative paths are resolved and made absolute using the current working directory.
23 /// Files needed by dil are located in this directory.
24 var DATADIR = "dil/data";
26 /// Predefined version identifiers.
27 var VERSION_IDS = ["X86", "linux", "LittleEndian"];
28 // "X86_64", "Windows", "Win32", "Win64", "BigEndian"
30 /// An array of import paths to look for modules.
31 var IMPORT_PATHS = []; /// E.g.: ["src/", "import/"]
33 /// DDoc macro file paths.
35 /// Macro definitions in ddoc_files[n] override the ones in ddoc_files[n-1].$(BR)
36 var DDOC_FILES = ["${DATADIR}/predefined.ddoc"]; /// E.g.: ["src/mymacros.ddoc", "othermacros.ddoc"]
38 /// Path to the language file.
39 var LANG_FILE = "${DATADIR}/lang_en.d";
40 /// Path to the xml map.
41 var XML_MAP = "${DATADIR}/xml_map.d";
42 /// Path to the html map.
43 var HTML_MAP = "${DATADIR}/html_map.d";
45 /// Path to the files of kandil.
46 var KANDILDIR = "${DATADIR}/../kandil";
48 /// Customizable formats for error messages.
51 /// $(LI 0: file path to the source text.)
52 /// $(LI 1: line number.)
53 /// $(LI 2: column number.)
54 /// $(LI 3: error message.)
56 var LEXER_ERROR = "{0}({1},{2})L: {3}";
57 var PARSER_ERROR = "{0}({1},{2})P: {3}"; /// ditto
58 var SEMANTIC_ERROR = "{0}({1},{2})S: {3}"; /// ditto
60 /// The width of the tabulator character set in your editor.
62 /// Important for calculating correct column numbers for compiler messages.