Skip to content

Commit 061f191

Browse files
committed
update yaml
Signed-off-by: George Lemon <georgelemon@protonmail.com>
1 parent 00761ef commit 061f191

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/openparser/yaml.nim

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,20 +326,27 @@ type
326326
yamlNull
327327

328328
YamlNode* {.acyclic.} = ref object
329+
## Represents a node in the YAML data structure, which can be a scalar, object or array
329330
case kind*: YamlValueKind
330331
of yamlInteger:
331332
intValue*: int64
333+
## Represents an integer value in YAML
332334
of yamlFloat:
333335
floatValue*: float64
336+
## Represents a floating-point value in YAML
334337
of yamlString:
335338
strValue*: string
339+
## Represents a string value in YAML
336340
of yamlBoolean:
337341
boolValue*: bool
338-
of yamlNull: discard
342+
## Represents a boolean value in YAML
339343
of yamlObject:
340344
objValue*: OrderedTableRef[string, YamlNode]
345+
## Represents a YAML mapping (object) with string keys and YamlNode values
341346
of yamlArray:
342347
arrValue*: seq[YamlNode]
348+
## Represents a YAML sequence (array) of YamlNode items
349+
of yamlNull: discard
343350

344351
YAMLObject* = OrderedTableRef[string, YamlNode]
345352
## Represents a simple

0 commit comments

Comments
 (0)