Index
Modules:
yanyl
,
yanyl/reflection
.
API symbols
`==`:
yanyl: proc `==`(a: YNode; b: YNode): bool
assertYList:
yanyl: template assertYList(n: YNode)
assertYMap:
yanyl: template assertYMap(n: YNode)
assertYString:
yanyl: template assertYString(n: YNode)
collectObjFieldsForType:
reflection: proc collectObjFieldsForType(t: NimNode): ObjFields
deriveYaml:
yanyl: macro deriveYaml(v: typed)
deriveYamls:
yanyl: macro deriveYamls(body: untyped)
discrim:
reflection: proc discrim(o: ObjFields): Field
dumpFields:
reflection: macro dumpFields(x: typed)
dumpImpl:
reflection: macro dumpImpl(x: typed)
dumpTypeImpl:
reflection: macro dumpTypeImpl(x: typed)
elems:
yanyl: proc elems(n: YNode): seq[YNode]
EnumVal:
reflection: object EnumVal
expectYList:
yanyl: template expectYList(n: YNode; body: untyped)
expectYMap:
yanyl: template expectYMap(n: YNode; body: untyped)
expectYString:
yanyl: template expectYString(n: YNode; body: untyped)
Field:
reflection: object Field
get:
yanyl: proc get(n: YNode; k: string): YNode
yanyl: proc get[T](n: YNode; k: string; t: typedesc[Option[T]]): Option[T]
yanyl: proc get[T](n: YNode; k: string; t: typedesc[seq[T]]): seq[T]
yanyl: proc get[T](n: YNode; k: string; t: typedesc[T]): T
getName:
reflection: proc getName(f: Field): string
getStr:
yanyl: proc getStr(n: YNode; k: string): string
getT:
reflection: proc getT(f: Field): NimNode
getTypeDefName:
reflection: proc getTypeDefName(n: NimNode): string
loadNode:
yanyl: proc loadNode(s: string | Stream): YNode
newYList:
yanyl: proc newYList(elems: seq[string]): YNode
yanyl: proc newYList(elems: seq[YNode]): YNode
newYMap:
yanyl: proc newYMap(a: openArray[(string, YNode)]): YNode
yanyl: proc newYMap(t: TableRef[string, YNode]): YNode
newYMapRemoveNils:
yanyl: proc newYMapRemoveNils(a: openArray[(string, YNode)]): YNode
newYNil:
yanyl: proc newYNil(): YNode
newYString:
yanyl: proc newYString(s: string): YNode
NimVariant:
reflection: object NimVariant
ObjFields:
reflection: object ObjFields
ObjType:
reflection: enum ObjType
ofYaml:
yanyl: proc ofYaml(n: YNode; t: typedesc[bool]): bool
yanyl: proc ofYaml(n: YNode; t: typedesc[char]): char
yanyl: proc ofYaml(n: YNode; t: typedesc[float]): float
yanyl: proc ofYaml(n: YNode; t: typedesc[int]): int
yanyl: proc ofYaml[T](n: YNode; t: typedesc[Option[T]]): Option[T]
yanyl: proc ofYaml[T](n: YNode; t: typedesc[ref T]): ref T
yanyl: proc ofYaml[T](n: YNode; t: typedesc[seq[T]]): seq[T]
yanyl: proc ofYaml(n: YNode; t: typedesc[string]): string
yanyl: proc ofYaml[T](n: YNode; t: typedesc[Table[string, T]]): Table[string, T]
yanyl: proc ofYaml[T](n: YNode; t: typedesc[TableRef[string, T]]): TableRef[string, T]
ofYamlStr:
yanyl: proc ofYamlStr[T](s: string; t: typedesc[T]): T
otDistinct:
reflection: ObjType.otDistinct
otEmpty:
reflection: ObjType.otEmpty
otEnum:
reflection: ObjType.otEnum
otObj:
reflection: ObjType.otObj
otTuple:
reflection: ObjType.otTuple
otTypeAlias:
reflection: ObjType.otTypeAlias
otVariant:
reflection: ObjType.otVariant
str:
yanyl: proc str(n: YNode): string
toChar:
yanyl: proc toChar(n: YNode): char
toFloat:
yanyl: proc toFloat(n: YNode): float
toInt:
yanyl: proc toInt(n: YNode): int
toString:
yanyl: proc toString(n: YNode; indentLevel = 0): string
toYaml:
yanyl: proc toYaml(b: bool): YNode
yanyl: proc toYaml(c: char): YNode
yanyl: proc toYaml(f: float): YNode
yanyl: proc toYaml(i: int): YNode
yanyl: proc toYaml[T](o: Option[T]): YNode
yanyl: proc toYaml[T](x: ref T): YNode
yanyl: proc toYaml[T](l: seq[T]): YNode
yanyl: proc toYaml(s: string): YNode
yanyl: proc toYaml[T](t: Table[string, T]): YNode
yanyl: proc toYaml[T](t: TableRef[string, T]): YNode
toYamlStr:
yanyl: proc toYamlStr[T](x: T): string
ynList:
yanyl: YNodeKind.ynList
ynMap:
yanyl: YNodeKind.ynMap
ynNil:
yanyl: YNodeKind.ynNil
YNode:
yanyl: object YNode
YNodeKind:
yanyl: enum YNodeKind
ynString:
yanyl: YNodeKind.ynString