001 yaml dom roundtrip

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

key name
key age
key ratio
key flag
key nothing
key tags
key meta
fields=7
name=ada
age=36
tag x
tag y
tags=2
{"name":"ada","age":36,"ratio":1.5,"flag":true,"nothing":null,"tags":["x","y"],"meta":{"lang":"koru"}}
name: ada
age: 36
ratio: 1.5
flag: true
nothing: null
tags:
  - x
  - y
meta:
  lang: koru

docs=1

Expected output

key name
key age
key ratio
key flag
key nothing
key tags
key meta
fields=7
name=ada
age=36
tag x
tag y
tags=2
{"name":"ada","age":36,"ratio":1.5,"flag":true,"nothing":null,"tags":["x","y"],"meta":{"lang":"koru"}}
name: ada
age: 36
ratio: 1.5
flag: true
nothing: null
tags:
  - x
  - y
meta:
  lang: koru

docs=1

Flows

flow ~parse click a branch to expand · @labels scroll to their anchor
parse (input: "name: ada\nage: 36\nratio: 1.5\nflag: true\nnothing: ~\ntags:\n - x\n - y\nmeta:\n lang: koru\n")

Test Configuration

MUST_RUN LANGUAGES: zig