CodeGen
|
Holds the configuration of generator More...
Static Public Member Functions | |
static string | GetIndent (bool tabs, int tabStop) |
Creates indent using given parameters More... | |
static string | ShiftCode (string code, int num, string indent) |
Shifts code using given parameters More... | |
static string | NormalizeLang (string lang) |
Converts given language into language which is used for identification of generator More... | |
static Languange | GetLanguage (string name) |
Creates generator if it exists, else throws an error More... | |
Static Public Attributes | |
static readonly Package | ExamplePkg |
Contains example package More... | |
static readonly Dictionary < string, Languange > | Languanges |
Dictionary of language names (keys) and its Language objects (values) More... | |
Holds the configuration of generator
Definition at line 232 of file GeneratorConf.cs.
|
static |
Creates indent using given parameters
tabs | Use tabs or spaces |
tabStop | Number of spaces |
Definition at line 367 of file GeneratorConf.cs.
|
static |
Creates generator if it exists, else throws an error
name | name of a language |
IndexOutOfRangeException | If the language is not found |
Definition at line 418 of file GeneratorConf.cs.
|
static |
Converts given language into language which is used for identification of generator
lang | Inputed language |
Definition at line 390 of file GeneratorConf.cs.
|
static |
Shifts code using given parameters
code | Code to be shifted |
num | Number of indents |
indent | Indent string |
Definition at line 379 of file GeneratorConf.cs.
|
static |
Contains example package
Definition at line 237 of file GeneratorConf.cs.
|
static |
Dictionary of language names (keys) and its Language objects (values)
Add languages: JS_ES5, Crystal, Closure, Kotlin, Rust, Scala, Lua,
Add frameworks: Pyhton/Django, Ruby/Rails
Definition at line 345 of file GeneratorConf.cs.