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: Tue, 01 Aug 2017 22:53:14 +0200 Organization: AvatarAcademy.nl Message-ID: <87d18fypqd.fsf@gnu.org> References: <67259F80-7E60-4717-A178-712D18585138@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1501620846 501 195.159.176.226 (1 Aug 2017 20:54:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 1 Aug 2017 20:54:06 +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 Tue Aug 01 22:54:01 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 1dceAy-0008C3-Br for guile-user@m.gmane.org; Tue, 01 Aug 2017 22:54:00 +0200 Original-Received: from localhost ([::1]:44416 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dceB4-0006WJ-8w for guile-user@m.gmane.org; Tue, 01 Aug 2017 16:54:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53187) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dceAX-0006Tz-DX for guile-user@gnu.org; Tue, 01 Aug 2017 16:53:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dceAU-0005cw-7X for guile-user@gnu.org; Tue, 01 Aug 2017 16:53:33 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dceAI-0005Tw-C7; Tue, 01 Aug 2017 16:53:18 -0400 Original-Received: from peder.onsbrabantnet.nl ([88.159.206.46]:41462 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 1dceAH-000743-QR; Tue, 01 Aug 2017 16:53:18 -0400 X-Url: http://AvatarAcademy.nl In-Reply-To: <67259F80-7E60-4717-A178-712D18585138@gmail.com> (Matt Wette's message of "Fri, 28 Jul 2017 16:47:04 -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:14007 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Matt Wette writes: > NYACC version 0.80.4 is released=20 > > This is a bug-fix release, to fix several bugs discovered by janneke. Th= anks 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 Yay, thanks again! Meanwhile, rain1 and I found two bugs. First is not really a bug, debug printing while parsing \xXX. Do (with-input-from-file "x00.c" parse-c99) with x00.c: char *s =3D "\x66\x6f\x6f\x20"; see patch attached. 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). Not sure what we want here, if "\0" passes through literally, the compiler will need to parse strings again and change those to null? Greetings, janneke --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=x00.c Content-Transfer-Encoding: base64 Y2hhciAqcyA9ICJceDY2XHg2Zlx4NmZceDIwIjsKCmludAptYWluICgpCnsKICBwdXRzIChzKTsK fQo= --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-typo-fix-parsing-of-xXX.patch Content-Transfer-Encoding: quoted-printable >From aa97207497b1d290734d04accf019caa4e854796 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Tue, 1 Aug 2017 19:39:25 +0200 Subject: [PATCH] typo: fix parsing of \xXX * module/nyacc/lex.scm (read-hex): Comment-out debug printing. --- module/nyacc/lex.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/nyacc/lex.scm b/module/nyacc/lex.scm index 2a4d28a..3636738 100644 --- a/module/nyacc/lex.scm +++ b/module/nyacc/lex.scm @@ -206,7 +206,7 @@ (cs:lhx (string->char-set "abcdef"))) (lambda (ch) ;; ch =3D=3D #\x always (let iter ((cv 0) (ch (read-char)) (n 0)) - (simple-format #t "ch=3D~S\n" ch) + ;;(simple-format #t "ch=3D~S\n" ch) (cond ((eof-object? ch) cv) ((> n 2) (unread-char ch) cv) --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=null.c Content-Transfer-Encoding: base64 Y2hhciAqcyA9ICJmb29cMGJhciI7CgoK --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com --=-=-=--