Goldie Homepage Documentation (v0.3) |
static class Goldiemodule goldie.goldie The primary interface to the Goldie library. static string langDir
Whenever Goldie tries to load or identify a CGT language file implicitly (ie, anything except loadCGT()), this is the directory where Goldie will try to find it. A trailing path separator is optional (Goldie always detects whether or not the trailing path separator is there and acts accordingly). The default value is {path to your executable}/lang/. static const string verStr
Version number of Goldie.
static readonly property semitwist.util.ver.Ver ver
Version number of Goldie.
Ver
is a type defined in semitwist.ver from
SemiTwist D Tools
and is useful for comparing version numbers.
static string inferLanguageOf(string sourceFilename)
Guesses the language name of a file. Currently just assumes the language name to be the same as the file's extension. Ex: "main.cpp" -> "cpp" static string inferLanguageFilenameOf(string sourceFilename)
Guesses the CGT filename of the language file appropriate for parsing the given file. Ex: "cpp" -> "{langDir}/cpp.cgt" static string getLanguageFilename(string languageName)
Given a language name, returns the path and name of the CGT language file. Ex: "cpp" -> "{langDir}/cpp.cgt" Attempts to infer and load the language of a file (by its extension). Ex: "main.cpp" -> Loads "{langDir}/cpp.cgt" Attempts to load a language in langDir. Ex: "cpp" -> Loads "{langDir}/cpp.cgt"
Loads a GOLD CGT file. Ignores langDir.
|