1 /// Author: Aziz Köksal
2 /// License: GPL3
3 /// $(Maturity average)
4 module Settings;
5 
6 import common;
7 
8 /// Global application settings.
9 struct GlobalSettings
10 {
11 static:
12   /// Path to the data directory.
13   cstring dataDir = "data/";
14   /// Path to the directory of kandil.
15   cstring kandilDir = "kandil/";
16   /// Predefined version identifiers.
17   cstring[] versionIds;
18   /// Path to the language file.
19   cstring langFile = "lang_en.d";
20   /// Language code of loaded messages catalogue.
21   string langCode = "en";
22   /// Table of localized compiler messages.
23   cstring[] messages;
24   /// Array of import paths to look for modules.
25   cstring[] importPaths;
26   /// Array of DDoc macro file paths.
27   cstring[] ddocFilePaths;
28   cstring xmlMapFile = "xml_map.d"; /// XML map file.
29   cstring htmlMapFile = "html_map.d"; /// HTML map file.
30   cstring lexerErrorFormat = "{0}({1},{2})L: {3}"; /// Lexer error.
31   cstring parserErrorFormat = "{0}({1},{2})P: {3}"; /// Parser error.
32   cstring semanticErrorFormat = "{0}({1},{2})S: {3}"; /// Semantic error.
33   uint tabWidth = 4; /// Tabulator character width.
34 }