src/kdl/types

Search:
Group by:
Source   Edit  

Types

KdlDoc = seq[KdlNode]
Source   Edit  
KdlError = object of CatchableError
Source   Edit  
KdlLexerError = object of KdlError
Source   Edit  
KdlNode = object
  tag*: Option[string]
  name*: string
  args*: seq[KdlVal]
  props*: Table[string, KdlVal]
  children*: seq[KdlNode]
Source   Edit  
KdlParserError = object of KdlError
Source   Edit  
KdlPrefs[T] = object
  path*: string
  default*: T
  content*: T
Source   Edit  
KdlProp = tuple[key: string, val: KdlVal]
Source   Edit  
KdlVal = object
  tag*: Option[string]
  case kind*: KValKind
  of KString:
    str*: string
  of KFloat:
    fnum*: float
  of KBool:
    boolean*: bool
  of KNull, KEmpty:
    nil
  of KInt:
    num*: int64
Source   Edit  
KValKind = enum
  KEmpty, KString, KFloat, KBool, KNull, KInt
Source   Edit