From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.user Subject: Re: YAML parser? Date: Mon, 24 Feb 2020 06:35:39 -0800 Message-ID: <1346d785-88b2-7d70-1466-4815588f5946@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="85476"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Mon Feb 24 15:43:05 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j6Ewr-000M9B-Kc for guile-user@m.gmane-mx.org; Mon, 24 Feb 2020 15:43:05 +0100 Original-Received: from localhost ([::1]:37564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6Ewq-0007rR-NZ for guile-user@m.gmane-mx.org; Mon, 24 Feb 2020 09:43:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51551) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6Epk-0002Sh-7t for guile-user@gnu.org; Mon, 24 Feb 2020 09:35:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6Epj-0005zo-5z for guile-user@gnu.org; Mon, 24 Feb 2020 09:35:44 -0500 Original-Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]:42300) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j6Epi-0005zk-W2 for guile-user@gnu.org; Mon, 24 Feb 2020 09:35:43 -0500 Original-Received: by mail-pg1-x52f.google.com with SMTP id w21so5243685pgl.9 for ; Mon, 24 Feb 2020 06:35:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=b5Qg9K+2QW+bepVi8PMUH1fZVHa7enxCM2Fp7VlwkNw=; b=RFyCF2NvdVmDyCjC2hHL5oLQnoxkQiW1sRqixcFuzBZFI6IF6lDMhhQvhbMm7vLvcP 5R5ionRN0nxYk2N4PBJ+fR9VhTVmtY5MURkzBw1ikcSCRuk3L+48bZgLabNy0LPGvh7b ZbNznAdl1dN5MYY46x+YxNFxpaw0UJoLe1xPAF2tyh49bZ43OXreoQj39Y2oH5pYMX6w 5Z2qh9THYYiYX4VI/nfVEB2K9R6ofIa0qoGVyZDhR0YBH1+GG7YiR53aae1Bz2llNqSi oTxkf9HKjZFVsVFph8hiCGiZAj7F1FGt1/5WlZ9xzNan9YRDYAeLBWUzDhxX4LQuJYvz fmHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=b5Qg9K+2QW+bepVi8PMUH1fZVHa7enxCM2Fp7VlwkNw=; b=MJ5bLcaQHyw3+cgtu/CFSd1EmNfxMbHKgv/EkX7E2Cbx1VWDk+coc0KZEo+zQMmq8+ R5t5CIopndeTUFFiAXKYYpLJxQqA0lBJ0wqAsGs+Byd/cUsftsyD0cN+JoYm3AMBWOVs vgUWDI2vcd6gc4sTCGrSFDF4WeFl5zNl7SeRGL8Yg7f0SKwpWPf/IvB4TVDo9QU8TUkb BgGwbvyvjRGP2Gq7hzVq6ov0J9s8ZEP7GtPQJBRWZk21A5vstfZFU6Oi8ZiZjRbhZo7n gZ5mzfJlTtmOYw6W2uCDsDyl4LYDB80sNRVZqMjxUXAv5bfN3HrMf2Ul+43NDU778G2R PAog== X-Gm-Message-State: APjAAAUyqUzcH7RqEUeokZCrqaOT/6UxyT1dQG6HBaY7taa9ziV/sn0k wnFI2gmTkXM6K1MauIEGWFMpfDZg X-Google-Smtp-Source: APXvYqy7hK9IGBQ65QRhWMKi9xjeoc+1uezEwp8WVcv7lQjTTgERYhF8Y8H2uv/qhXf/3HqQTge7ZA== X-Received: by 2002:a63:360a:: with SMTP id d10mr51625494pga.366.1582554941564; Mon, 24 Feb 2020 06:35:41 -0800 (PST) Original-Received: from [192.168.2.183] (64-52-176-132.championbroadband.com. [64.52.176.132]) by smtp.gmail.com with ESMTPSA id o9sm13565979pfg.130.2020.02.24.06.35.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Feb 2020 06:35:40 -0800 (PST) In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::52f X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:16235 Archived-At: 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_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