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: Tue, 1 Aug 2017 16:10:48 -0700 Message-ID: <85FC89DE-29B4-4364-9EC9-3A1ADDD4C57C@gmail.com> References: <67259F80-7E60-4717-A178-712D18585138@gmail.com> <87d18fypqd.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 1501629087 32344 195.159.176.226 (1 Aug 2017 23:11:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 1 Aug 2017 23:11:27 +0000 (UTC) Cc: Guile User To: Jan Nieuwenhuizen Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Aug 02 01:11:22 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 1dcgJt-0007zR-Be for guile-user@m.gmane.org; Wed, 02 Aug 2017 01:11:21 +0200 Original-Received: from localhost ([::1]:44839 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcgJx-0001Nc-OU for guile-user@m.gmane.org; Tue, 01 Aug 2017 19:11:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcgJW-0001NL-GN for guile-user@gnu.org; Tue, 01 Aug 2017 19:10:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcgJV-0006td-E8 for guile-user@gnu.org; Tue, 01 Aug 2017 19:10:58 -0400 Original-Received: from mail-pf0-x232.google.com ([2607:f8b0:400e:c00::232]:36354) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dcgJQ-0006q7-5i; Tue, 01 Aug 2017 19:10:52 -0400 Original-Received: by mail-pf0-x232.google.com with SMTP id z129so13498625pfb.3; Tue, 01 Aug 2017 16:10:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=K46UNavg2ISwONhOPQZ31DSoKTY0eKgRUvBB0pev18s=; b=KSC+SI2funeknnVlAiOiBmDX40jjjS8ucwip1DP9oW9rrzY2RPqYtYrhFLYODZH68r l2hk3jaascMbiS58ENHaPdplcULrCbsztNLBQqx71URpagq7RZIMT0YIeTbZktMQAPHn SLOlfIxALFJZfr+g+EWRhFlmXbkvdpY3LpLqSxSLnYJrvUwUF5ccFlqbI2vXTPcUyXEJ na6tHL07ybFAESHVemzXltsEw+eqEazjC18tFjlpODUEqIRQCqCz7qoYNIx5boKgqkNE RMbIF+Yem7KOVNzGOzRSgLyKdHI5hOvs4P1ZVQY9Rj2SqsefC1glkPPsc4tn+nJfVbVg T2wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=K46UNavg2ISwONhOPQZ31DSoKTY0eKgRUvBB0pev18s=; b=KTUBa1jufPlFtm5frQ4URuFPDGkX1yKTeyzj2kYz+R9BmbWf3OR4UnnfueQgs1CRBB cslUQ2Lm3gqbWbKxnxXbRHvykLvIc7Bq5RPQIKdcBxmjbKCYlY4wHBRBccjjDdKvz3wb nGtBTl1R14WK4dWlP8svdcoT75xHhxI3Lkz7c9hkwXcPEGg5m23/+yVxaJjLMibZDfTt SSFUC50FrD/RqMCI8TFX6ZSB2zEGtpSZHYdtoHMhNNK+5F4oC/d+mLu8mBDdUDapROLt ZbqicF8ZQ2JodXiH62KvukrDUSASiLHp2awh9LiKsooQDcwJ0+3TgmG5lJYKvuadFEvN abTQ== X-Gm-Message-State: AIVw111FBzr/5J8eMsOWCTYd5WhVJpuCnipSgu0MxubCgbLuJmJB5fO+ Yk64rn8nXIb0un30FN8= X-Received: by 10.84.133.15 with SMTP id 15mr18737020plf.31.1501629050275; Tue, 01 Aug 2017 16:10:50 -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 l5sm18186443pfg.50.2017.08.01.16.10.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Aug 2017 16:10:49 -0700 (PDT) In-Reply-To: <87d18fypqd.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:c00::232 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:14009 Archived-At: > On Aug 1, 2017, at 1:53 PM, Jan Nieuwenhuizen wrote: >=20 > Matt Wette writes: >=20 >> NYACC version 0.80.4 is released=20 >>=20 >> This is a bug-fix release, to fix several bugs discovered by janneke. = Thanks Jan. >> 1) C parser not parsing =E2=80=9C0ULL=E2=80=9D as numeric; fixed. >> 2) #undef FOO not working; fixed; >> 3) struct foo { =E2=80=A6} =3D> (struct-def (ident (=E2=80=9Cfoo=E2=80=9D= ))=E2=80=A6 ; fixed: =3D> (struct-def (ident =E2=80=9Cfoo=E2=80=9D) =E2=80= =A6 >> 4) C pre-processor argument reading dropping characters=20 >=20 > Yay, thanks again! Thanks for the reports. I am happy to see the severity in bugs = reducing. For the FFI-helper I need to parse the rat=E2=80=99s nest under = /usr/include so I am catching more. >=20 > Meanwhile, rain1 and I found two bugs. First is not really a bug, = debug > printing while parsing \xXX. Do >=20 > (with-input-from-file "x00.c" parse-c99) >=20 > with x00.c: >=20 > char *s =3D "\x66\x6f\x6f\x20"; >=20 > see patch attached. >=20 > The others is parsing of "\0", see null.c. Instead of a null = character > (or possibly literally "\0") we get an ascii 0 (without backslash). >=20 > Not sure what we want here, if "\0" passes through literally, the > compiler will need to parse strings again and change those to null? 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. On the other hand, the C99 pretty-printer turns out char *s =3D "foo\x00bar=E2=80=9D; which is wrong. I will work on something to make this look like = =E2=80=9Cfoo\0bar=E2=80=9D. Look for fixes to above, along with some (minor) changes in c99 output, = in 0.81.0. Matt