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 07:04:30 -0800 Message-ID: <13438DBD-CD79-443A-92D2-E4973EFF1E64@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> <93C22FDC-1E68-4C05-AFB4-2DE1B16CED67@gmail.com> 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 1511449797 16682 195.159.176.226 (23 Nov 2017 15:09:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Nov 2017 15:09:57 +0000 (UTC) Cc: Guile User Mailing List To: Matt Wette Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Nov 23 16:09:52 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 1eHt8N-0003hl-Ad for guile-user@m.gmane.org; Thu, 23 Nov 2017 16:09:47 +0100 Original-Received: from localhost ([::1]:44818 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHt8U-0002gs-LG for guile-user@m.gmane.org; Thu, 23 Nov 2017 10:09:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHt3S-00007g-Qe for guile-user@gnu.org; Thu, 23 Nov 2017 10:04:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eHt3R-00084H-0g for guile-user@gnu.org; Thu, 23 Nov 2017 10:04:42 -0500 Original-Received: from mail-pg0-x22c.google.com ([2607:f8b0:400e:c05::22c]:40760) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eHt3K-0007t8-Ii; Thu, 23 Nov 2017 10:04:34 -0500 Original-Received: by mail-pg0-x22c.google.com with SMTP id u3so14122358pgn.7; Thu, 23 Nov 2017 07:04:34 -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=nmeo488Sl5CgJkQt7DchxaXWnq59zp8dA7+bMgZi2og=; b=ulgNmOPRMj+Mxc33OiGDq95QQSeHc7M+lvdRCUTN5BQ+lO8OheqFl2uczT9hICgqIs VEOGSTwvktSAHkAlzZrobk/ovJeHfM8Kw1HX90hJ3BfDX3SjkpN5tOI/Br2ytCegMQx3 nA9CpWIUhg45FmsOqh/pO+qjPt3olibyP3n1MdIpEO1BaG979yUX24GKzz0M8qo6/cxn AZ4GFEuC0Gc5ABjn7YS/QN1QUwIXe7be4Kz9ZZOYoVGoDuJGioAsemABRUSMJdGPmnEk iskEnnck701MbTQy3bmhJbS0lPm26vLbys7dW0zjw36UFN+aOG+88CCuSXpTVVlz+aoy 8D0g== 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=nmeo488Sl5CgJkQt7DchxaXWnq59zp8dA7+bMgZi2og=; b=IQnDdZwhgC552YHnr1dxr/QC/yzzzYMopthXEPFZTK0H3HMd7mhzzCmBUWN1ANsr0T JPPrw1xBPL2+YEI3mm/C8Sdold+0RHNYvJYGQ/RR7yRjdMpulFJghp36/Qp1c3QuT5Qg 7SB3zSpdzrcWjQ3RpniUhKeDQHNBM+qwPHoDTIcLY2v1/F1hMR3uCwbtzgQg7ssNDPl0 TcxBMIb94FQGvjrP3lip/oG6fr6kR5OZ4tctV+9u/0OdqViHlMP5VBHCvC3CyXV0HgnG mfvOcQh7TJWXZP0U+RaxBEJomtrBA1Mkx1aWzaNeyVpbBAWwytd3Iz2Ewr2tfITZoBby Cr8w== X-Gm-Message-State: AJaThX6EwGRWA3tBXgNNSU7HyzLeuCVe37NBiITsRsEnwXxQM6FEOvi3 7SCd8Oz617igBGP77MVtM5Wo3FzE X-Google-Smtp-Source: AGs4zMaCj3YSy5uCk2cjWxYXBRKWqBKtobhEne5lPyqgc8PaBGQst0fWRKTR62hsS2cvbZJhkAAgWQ== X-Received: by 10.101.101.216 with SMTP id y24mr19156789pgv.236.1511449473122; Thu, 23 Nov 2017 07:04:33 -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 w5sm32900147pfw.51.2017.11.23.07.04.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Nov 2017 07:04:32 -0800 (PST) In-Reply-To: <93C22FDC-1E68-4C05-AFB4-2DE1B16CED67@gmail.com> 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-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:14283 Archived-At: > On Nov 23, 2017, at 6:45 AM, Matt Wette wrote: >=20 >=20 >> 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 >=20 >=20 > Right. I thought octals had to start with 0. I will fix. Or I though so yesterday when I changed the code. I believe I have a = fix, but I'm going to=20 add and execute more lex tests before pushing.