NimYAML/doc/snippets/quickstart/04/00-code.nim

12 lines
194 B
Nim
Raw Normal View History

2021-05-17 22:31:47 +00:00
import yaml/serialization, streams
2016-10-08 16:38:27 +00:00
type
Node = ref NodeObj
NodeObj = object
name: string
left, right: Node
var node1: Node
var s = newFileStream("in.yaml")
load(s, node1)
s.close()