[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: YAML parser?
From: |
Aleix Conchillo Flaqué |
Subject: |
Re: YAML parser? |
Date: |
Wed, 25 Mar 2020 16:02:35 -0700 |
On Tue, Mar 24, 2020 at 6:04 PM Matt Wette <address@hidden> wrote:
> >
> I have updated this. I now have a procedure read-yaml-file which will
> read a yaml file and convert to a scheme tree.
>
> Matt
>
> $ GUILE_LOAD_PATH= guile demo1.scm
> (("doe" . "a deer, a female deer")
> ("ray" . "a drop of golden sun")
> ("pi" . "3.14159")
> ("xmas" . "true")
> ("french-hens" . "3")
> ("calling-birds"
> .
> #("huey" "dewey" "louie" "fred"))
> ("xmas-fifth-day"
> ("calling-birds" . "four")
> ("french-hens" . "3")
> ("golden-rings" . "5")
> ("partridges"
> ("count" . "1")
> ("location" . "a pear tree"))
> ("turtle-doves" . "two"))
>
>
> from
>
>
> $ cat demo1.yml
> ---
> doe: "a deer, a female deer"
> ray: "a drop of golden sun"
> pi: 3.14159
> xmas: true
> french-hens: 3
> calling-birds:
> - huey
> - dewey
> - louie
> - fred
> xmas-fifth-day:
> calling-birds: four
> french-hens: 3
> golden-rings: 5
> partridges:
> count: 1
> location: "a pear tree"
> turtle-doves: two
>
>
This is great! Thank you so much.
Aleix