From: Matt Wette <matt.wette@gmail.com>
To: guile-user@gnu.org
Subject: Re: YAML parser?
Date: Mon, 24 Feb 2020 06:35:39 -0800 [thread overview]
Message-ID: <1346d785-88b2-7d70-1466-4815588f5946@gmail.com> (raw)
In-Reply-To: <e8a61216-6029-9e02-a169-f4da7dd4e675@gmail.com>
On 2/23/20 7:29 AM, Matt Wette wrote:
> On 2/21/20 8:12 PM, Aleix Conchillo Flaqué wrote:
>> Hi,
>>
>> does anyone know if there's any YAML parser for Guile? Haven't been
>> able to
>> find any.
>>
>> Thanks!
>>
>> Aleix
>
> Hi Aleix,
>
> I don't know of a YAML parser for Guile, but if you look at my email
> posted 2/22 I have
> a Guile package called NYACC. This includes a "FFI Helper" that can
> generate the Guile
> FFI code based on yaml.h from libyaml. The API is going to be C-like
> but if you do some
> work to paste something on the front you will have something, I think.
>
> Below I have a demo program and the yaml.ffi file used to generate
> yaml.scm.
> When executed, the demo program outputs the following:
>
> $ guile demo1.scm
> #<yaml_node_t* 0x56353bc4af80>
> YAML_MAPPING_NODE
>
I am working on this a bit more. This requires some second order
programming
(e.g., pointers used as vectors) so don't kill yourself. I'm looking
into it more.
Matt
next prev parent reply other threads:[~2020-02-24 14:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-22 4:12 YAML parser? Aleix Conchillo Flaqué
2020-02-23 15:29 ` Matt Wette
2020-02-24 14:35 ` Matt Wette [this message]
2020-03-04 14:21 ` Matt Wette
2020-03-06 19:49 ` Aleix Conchillo Flaqué
2020-03-25 1:04 ` Matt Wette
2020-03-25 23:02 ` Aleix Conchillo Flaqué
2020-02-24 14:48 ` Thompson, David
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1346d785-88b2-7d70-1466-4815588f5946@gmail.com \
--to=matt.wette@gmail.com \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).