From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jan Nieuwenhuizen Newsgroups: gmane.lisp.guile.user Subject: Re: [ANN] nyacc 0.80.4 released Date: Wed, 02 Aug 2017 07:23:37 +0200 Organization: AvatarAcademy.nl Message-ID: <878tj2zgo6.fsf@gnu.org> References: <67259F80-7E60-4717-A178-712D18585138@gmail.com> <87d18fypqd.fsf@gnu.org> <85FC89DE-29B4-4364-9EC9-3A1ADDD4C57C@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1501651462 1367 195.159.176.226 (2 Aug 2017 05:24:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 2 Aug 2017 05:24:22 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: Guile User To: Matt Wette Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Aug 02 07:24:17 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcm8l-0008Pf-1h for guile-user@m.gmane.org; Wed, 02 Aug 2017 07:24:15 +0200 Original-Received: from localhost ([::1]:45545 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcm8q-0002RE-Ut for guile-user@m.gmane.org; Wed, 02 Aug 2017 01:24:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcm8T-0002Qy-Tn for guile-user@gnu.org; Wed, 02 Aug 2017 01:23:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcm8Q-0008QG-MB for guile-user@gnu.org; Wed, 02 Aug 2017 01:23:57 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44525) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcm8D-0008Jt-QS; Wed, 02 Aug 2017 01:23:41 -0400 Original-Received: from peder.onsbrabantnet.nl ([88.159.206.46]:33052 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dcm8D-0003CH-81; Wed, 02 Aug 2017 01:23:41 -0400 X-Url: http://AvatarAcademy.nl In-Reply-To: <85FC89DE-29B4-4364-9EC9-3A1ADDD4C57C@gmail.com> (Matt Wette's message of "Tue, 1 Aug 2017 16:10:48 -0700") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:14010 Archived-At: Matt Wette writes: > Thanks for the reports. I am happy to see the severity in bugs reducing. Yes! > For the FFI-helper I need to parse the rat=E2=80=99s nest under /usr/incl= ude > so I am catching more. Hah :-) > I am not sure what you are getting at here. If I have > char *s =3D =E2=80=9Cfoo\0bar=E2=80=9D; > then the tree is > (trans-unit > (decl (decl-spec-list (type-spec (fixed-type "char"))) > (init-declr-list > (init-declr > (ptr-declr (pointer) (ident "s")) > (initzer (p-expr (string "foo\x00bar"))))))) > so the null character makes it into the tree. The tree language is SXML = so this should be a=20 > legal Scheme string, which I think it is. See http://dl.acm.org/citation= .cfm?doid=3D571727.571736. Hmm, weird are you using my null.c? Here's what I get --8<---------------cut here---------------start------------->8--- 07:18:50 janneke@dundal:~/src/nyacc [env] $ guile GNU Guile 2.2.2 Copyright (C) 1995-2017 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> (use-modules (nyacc lalr)) scheme@(guile-user)> *nyacc-version* $1 =3D "0.80.4" scheme@(guile-user)> (use-modules (nyacc lang c99 parser)) scheme@(guile-user)> (with-input-from-file "null.c" parse-c99) $2 =3D (trans-unit (decl (decl-spec-list (type-spec (fixed-type "char"))) (= init-declr-list (init-declr (ptr-declr (pointer) (ident "s")) (initzer (p-e= xpr (string "foo0bar"))))))) scheme@(guile-user)>=20 --8<---------------cut here---------------end--------------->8--- > Look for fixes to above, along with some (minor) changes in c99 output, i= n 0.81.0. Thanks! Greetings, janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com