tconfig

Types

ImportPathType = enum
  Never = 0, Absolute = 1, Relative = 2
Supported import path types.   Source Edit
TypeInterpreter = object
  prefix*: string
  separators*: string
  postfix*: string
  output*: string
Post processed custom types   Source Edit
TConfig = object
  comment*: string
  customTypes*: Table[string, TypeInterpreter]
  customTypeInits*: Table[string, TypeInterpreter]
  filename*: Case
  filetype*: string
  implementFormat*: string
  importPath*: ImportPath
  parseFormat*: string
  templates*: Table[string, string]
  types*: Table[string, string]
  typeInits*: Table[string, string]
Object of template config.   Source Edit

Consts

DEFAULT_SEPARATOR: char = '/'
  Source Edit
DEFAULT_COMMENT: string = "//"
  Source Edit
FN = "filename"
  Source Edit
FT = "filetype"
  Source Edit
I_FMT = "implementFormat"
  Source Edit
IP_FMT = "importPath"
  Source Edit
FMT = "format"
  Source Edit
P_TY = "pathType"
  Source Edit
SEP = "separator"
  Source Edit
PFX = "prefix"
  Source Edit
LEVEL = "level"
  Source Edit
P_FMT = "parseFormat"
  Source Edit
TEMP = "templates"
  Source Edit
TY = "types"
  Source Edit
IN = "init"
  Source Edit

Procs

proc interpretType(inputType: string; outputType: string): TypeInterpreter {...}{.
    raises: [ValueError, GenericError], tags: [].}
Interpret custom types.   Source Edit
proc initTConfig(cmt: string = DEFAULT_COMMENT;
                ct: Table[string, TypeInterpreter] = initTable();
                cti: Table[string, TypeInterpreter] = initTable();
                c: Case = Case.Default; ft: string = ""; ifmt: string = "";
                ipfmt: string = ""; ipt: ImportPathType = ImportPathType.Never;
                pfx: string = ""; sep: char = DEFAULT_SEPARATOR; level: int = 0;
                pfmt: string = ""; temp: Table[string, string] = initTable();
                ty: Table[string, string] = initTable();
                ti: Table[string, string] = initTable()): TConfig {...}{.raises: [], tags: [].}
Create an initialized template config.   Source Edit