From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.user Subject: Re: [ANN] nyacc 0.80.4 released Date: Wed, 2 Aug 2017 05:13:43 -0700 Message-ID: <70EB26F7-B52B-4E4D-9CDE-D5CA7803E7EC@gmail.com> References: <67259F80-7E60-4717-A178-712D18585138@gmail.com> <87d18fypqd.fsf@gnu.org> <85FC89DE-29B4-4364-9EC9-3A1ADDD4C57C@gmail.com> <878tj2zgo6.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1501676061 11877 195.159.176.226 (2 Aug 2017 12:14:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 2 Aug 2017 12:14:21 +0000 (UTC) Cc: Guile User To: Jan Nieuwenhuizen Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Aug 02 14:14:16 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 1dcsXY-0002ox-Bx for guile-user@m.gmane.org; Wed, 02 Aug 2017 14:14:16 +0200 Original-Received: from localhost ([::1]:47516 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcsXe-0002mQ-CO for guile-user@m.gmane.org; Wed, 02 Aug 2017 08:14:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcsXC-0002js-9i for guile-user@gnu.org; Wed, 02 Aug 2017 08:13:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcsXB-0002mW-2T for guile-user@gnu.org; Wed, 02 Aug 2017 08:13:54 -0400 Original-Received: from mail-pg0-x22c.google.com ([2607:f8b0:400e:c05::22c]:36739) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dcsX6-0002eC-Ih; Wed, 02 Aug 2017 08:13:48 -0400 Original-Received: by mail-pg0-x22c.google.com with SMTP id v77so14782373pgb.3; Wed, 02 Aug 2017 05:13:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=RZ5sFAL74j608M/lWsguhXF0TXqiUbz8eurKFjBdymY=; b=VnaNpnbLqJyQ4SM0LVGOfvedWXfRPzuAO6RdpuEKA1vcsMT2/hXmo35+Q0luyBG5oz 3ot/yXgi0HuKSFYgsbpHH7jBbXDDYqHvXWw96s9bR+HHgYcA1RtnSpv7nxmYqc5HEjXp e85/lXYxoi5w3rey46IW2fXPDVQNxYx9I9LB7332H2Z0WmHMxv1ZE+gyRWmXsRsTMw0b k4rVdCSKWtVw4t1FIP1aTDRQI/RcRu0T6PtDilaI9wMgYfY9w6/5z6XFqu3rmkKFS1XJ ZJ3Z4o9uBbgRt6tvPipgFAmoAUw3G+kgvcql+qt7z870GEAh7tLd7qVN2uxUQcfuPYt2 X+QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=RZ5sFAL74j608M/lWsguhXF0TXqiUbz8eurKFjBdymY=; b=o14mSLrQ6ICi5bNHgrtWsON3Vxupumuqv3tmP+f5ex3u3yE8uOXpWaJDJrAMAgWvwa Mc7ODqY0Hyg36gl1p5cZqYe5lWj24WG+firEDBHKkgRB8AtarsqnvmorlWLI8p7U8Gp7 3VjqqXbWxC5uFo/tboKQFkjvKpC1hwcdST1EGPdZSqyO+ePxulGfKNJ4lw1nwvo4Gyfl wRBmpEq7NmLpe+WEhLN+Kt3q+EvJ7pZs+kUtoSeM6Wdi8/t71cLsOmRzElLmf0dbGFIa UgTkypsGBEm72PuPKADiXj9UfsJ/a/Uq3MBV7kAChmO3WCmLBwc+b3TWHjOZM2QKueIH WBBA== X-Gm-Message-State: AIVw110nIqADchiLTVK2ac2tFCC7jltULOPxHJiOuSG6VB8r1sClpq+A L9kDlPZRfE6Vus+2bdU= X-Received: by 10.98.102.74 with SMTP id a71mr22983707pfc.73.1501676027181; Wed, 02 Aug 2017 05:13:47 -0700 (PDT) Original-Received: from nautilus.championbroadband.com (216-165-236-44.championbroadband.com. [216.165.236.44]) by smtp.gmail.com with ESMTPSA id 204sm11822122pfu.118.2017.08.02.05.13.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Aug 2017 05:13:46 -0700 (PDT) In-Reply-To: <878tj2zgo6.fsf@gnu.org> X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::22c X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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:14011 Archived-At: > On Aug 1, 2017, at 10:23 PM, Jan Nieuwenhuizen = wrote: >=20 > Matt Wette writes: >=20 >> Thanks for the reports. I am happy to see the severity in bugs = reducing. >=20 > Yes! >=20 >> For the FFI-helper I need to parse the rat=E2=80=99s nest under = /usr/include >> so I am catching more. >=20 > Hah :-) >=20 >> 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. >=20 > Hmm, weird are you using my null.c? Here's what I get >=20 > --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. >=20 > 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. >=20 > 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-expr (string "foo0bar"))))))) > scheme@(guile-user)>=20 > --8<---------------cut here---------------end--------------->8--- >=20 >=20 >> Look for fixes to above, along with some (minor) changes in c99 = output, in 0.81.0. >=20 > Thanks! >=20 > Greetings, > janneke >=20 > --=20 > Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org > Freelance IT http://JoyofSource.com | Avatar=C2=AE = http://AvatarAcademy.com You are right. If I use the string parser it parses correctly. If I = use the file parser it does not.=20 I need to check this out. Matt