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: fix for c99dev string escape char read Date: Thu, 23 Nov 2017 06:45:55 -0800 Message-ID: <93C22FDC-1E68-4C05-AFB4-2DE1B16CED67@gmail.com> References: <8C89D411-ED03-4D86-A389-BD06153DB964@gmail.com> <87o9nthhg3.fsf_-_@gnu.org> <0CA89721-C620-4156-B1AD-479132B2D98F@gmail.com> <878texh7na.fsf@gnu.org> <874lplh40m.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 1511448393 26328 195.159.176.226 (23 Nov 2017 14:46:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Nov 2017 14:46:33 +0000 (UTC) Cc: Guile User Mailing List To: Jan Nieuwenhuizen Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Nov 23 15:46:28 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 1eHslo-0006Gv-0W for guile-user@m.gmane.org; Thu, 23 Nov 2017 15:46:28 +0100 Original-Received: from localhost ([::1]:44716 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHslq-0007zw-9A for guile-user@m.gmane.org; Thu, 23 Nov 2017 09:46:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHslS-0007zh-9V for guile-user@gnu.org; Thu, 23 Nov 2017 09:46:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eHslR-0004hl-4R for guile-user@gnu.org; Thu, 23 Nov 2017 09:46:06 -0500 Original-Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]:41348) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eHslM-0004al-E1; Thu, 23 Nov 2017 09:46:00 -0500 Original-Received: by mail-pf0-x22d.google.com with SMTP id j28so13594624pfk.8; Thu, 23 Nov 2017 06:46:00 -0800 (PST) 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=f4/5HQhNiXTXRHA1Ks16vcKCAc35BhExyqtyJv+4oaE=; b=r6JfvER2vmuMsJ8+8SOfpxsgYTeLsKWCrwP7SQIAl+t6u1IqatHHT7ZOd4AXUr0yCV NCuKMwgSlAuTZoPzwph2X4oE/fyni/xsEE6gee7ygTYu8gUIzYxojgzeOVQwhbVvrNKC buxCw0GROUuSEdYhi0IBFAoXwXdEaweThzllN+4I6h9rLISmowV1DtHPyOGVRMqgselJ cWcblfF/6aLdyQavdycBannaFmigfT3NmVIzt2lVZA/QMfnGZU4ode/8oQi7bAFp7Srt eWj3MDjHJW2WsN4V7M3e0ZgQ2PDa1eP6E/87jOpLD1PT7+IerXG78QtCNjdUFzNpIUNU m/8Q== 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=f4/5HQhNiXTXRHA1Ks16vcKCAc35BhExyqtyJv+4oaE=; b=oXIYwOnWK2bXVgYaHXCogOcMWFPodnKnQ6j1JwREbsSipnCZoYX0JexEQsTaeUjhh0 yDEU/Z3rQyyXOOEeQX+53ryu/LMK1FhhVxalHfHr9EbV7K0+5iXPOh9/NjCO70HWy9t+ cBAEURBSoYfQFqEbee+rnD+UoKmqhJOdasgN1KV6hOiW2Ks+ojW5my9x80OUZsys84jt F1qpd0fofMumz8eb7uOu5rabIT8FfbsBSWdFKzUrvIP/69q7Ikyi1Tw6TQxjpBr/obqb a/jGUdyO0ukej45uLj0/f+lF8qu4g6KUQtb0MUdvShb2OdrK0W1nlhlx88Aa8vhYwMHx 8E+A== X-Gm-Message-State: AJaThX5lkZ42HI71zFvhrjZ7ZJadR9L9AO17J7GmYn6onUyyXE2tWvKg YyQlVghRqwt/l0QUI4yWWAN3gRXW X-Google-Smtp-Source: AGs4zMbcUJhf1q9VfFVDH39w+5Fw4F16uT9YdfZxOvqeLndOGZk3Vm2mGcaWsYdNDIksTIGirndSCw== X-Received: by 10.99.96.210 with SMTP id u201mr24295424pgb.294.1511448358492; Thu, 23 Nov 2017 06:45:58 -0800 (PST) Original-Received: from nautilus.championbroadband.com (216-165-229-229.championbroadband.com. [216.165.229.229]) by smtp.gmail.com with ESMTPSA id z22sm32679959pfl.135.2017.11.23.06.45.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Nov 2017 06:45:58 -0800 (PST) In-Reply-To: <874lplh40m.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::22d 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:14282 Archived-At: > On Nov 22, 2017, at 11:02 PM, Jan Nieuwenhuizen = wrote: >=20 > Jan Nieuwenhuizen writes: >=20 >> For now I'm happy; we'll see. >=20 > Still happy, found a bug though; on c99dev plus my previous patch this = happens >=20 > --8<---------------cut here---------------start------------->8--- > (use-modules (nyacc lang c99 parser) (ice-9 pretty-print)) > (pretty-print (with-input-from-string "#define ELF \"\\177ELF\"\nchar = *a =3D ELF;" parse-c99)) >=20 > =3D> >=20 > (trans-unit > (decl (decl-spec-list (type-spec (fixed-type "char"))) > (init-declr-list > (init-declr > (ptr-declr (pointer) (ident "a")) > (initzer (p-expr (string "177ELF"))))))) > --8<---------------cut here---------------end--------------->8--- >=20 > master (correctly) gives >=20 > ... (p-expr (string "\x7fELF")) >=20 > janneke >=20 > --=20 > Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org > Freelance IT http://JoyofSource.com | Avatar=C2=AE = http://AvatarAcademy.com >=20 Right. I thought octals had to start with 0. I will fix.=