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: nyacc 0.73.0 released Date: Sat, 31 Dec 2016 08:08:27 -0800 Message-ID: <04AF8714-9C32-4EA1-A3BC-74FBFF2EB478@gmail.com> References: <87d1gfcfnm.fsf@gnu.org> <87r34ob2wc.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1483200542 26471 195.159.176.226 (31 Dec 2016 16:09:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 31 Dec 2016 16:09:02 +0000 (UTC) Cc: guile-user@gnu.org To: Matt Wette Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Dec 31 17:08:58 2016 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 1cNMDE-0005SS-I7 for guile-user@m.gmane.org; Sat, 31 Dec 2016 17:08:52 +0100 Original-Received: from localhost ([::1]:44630 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cNMDH-0000iT-LT for guile-user@m.gmane.org; Sat, 31 Dec 2016 11:08:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cNMCy-0000iO-HL for guile-user@gnu.org; Sat, 31 Dec 2016 11:08:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cNMCx-0000Xf-MA for guile-user@gnu.org; Sat, 31 Dec 2016 11:08:36 -0500 Original-Received: from mail-pf0-x233.google.com ([2607:f8b0:400e:c00::233]:32827) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cNMCt-0000X5-NC; Sat, 31 Dec 2016 11:08:31 -0500 Original-Received: by mail-pf0-x233.google.com with SMTP id d2so69318995pfd.0; Sat, 31 Dec 2016 08:08:31 -0800 (PST) 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=zp0r04drlD6twXgTjke72txBsw/RlJBSuLW1vFMnTZk=; b=XS5PyhWj4+NHCTW2ZLlZcGFVQQPrJsSDa28ve+aygFfkX7DUXwlz8JGj68utdIQLOS YdWLsD0vav5DejdDRq5zk8i942DJAFKNfKhvROdrsoFP7xoSeQvsMJnD+tHwU1GkrTsM 6SEhymNYyXvLgi1yxSFH+3RHtBlkz0fZsqXagXtZM4+orEttCaRpOnlcG7BvYGuGSBwK hlIpCqDm9Wsn4jJfxGI6n0jem44lPQfPfGjURZXOvEyA30NIVM5u+81E/Co7llwxqeiv k2Iht7wzCLbmYdj7QzTD7HeUWmv+YUSW1IttP1jzHIzKf18wFeZ8FyJ2XEZU/i0J79ow ybmQ== 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=zp0r04drlD6twXgTjke72txBsw/RlJBSuLW1vFMnTZk=; b=N4I/mAPj/jVLNNxDL6sPHCMzx4r/HHHJuZjU8dDBUqZaYC2hHIt3p6IEJOtWqX7QUN Z22jRZL7afNdvIr4nsilbIE5ReDRtZREbzWlRcELMd4oNJKyg/zx/CadFDfRrFIuue1r lZWQ8wBqm6gpa0kldV32TQrPQQtwwfIs8WG4FGsPZxCQ4Amc0wBXAOnNkRjUsCC7TBn4 qIPTIISDDLGCdnGNKPjIVFYMHD9VpzFZNhNJXsnqgGZR4sMAg05CgonAQHYgxBmkWPOJ wILRP53BkqwCmpzwC7V9kMbMSPzH7wj8EMZtzZNGAXyGrXvo2bR6B2aB16Dh5ok2ETBc BQng== X-Gm-Message-State: AIkVDXLpZJDkb83cbGPK/mp8Bs96xnAF+kqazL00XcYpCrZSUHPSFxeqV+fZJ9Jl0JDD5A== X-Received: by 10.84.217.202 with SMTP id d10mr80817635plj.132.1483200510612; Sat, 31 Dec 2016 08:08:30 -0800 (PST) Original-Received: from nautilus.championbroadband.com (216-165-246-244.championbroadband.com. [216.165.246.244]) by smtp.gmail.com with ESMTPSA id q27sm120718294pfd.49.2016.12.31.08.08.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 31 Dec 2016 08:08:29 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3259) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::233 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:13069 Archived-At: > On Dec 31, 2016, at 7:57 AM, Matt Wette wrote: > I think this may accomplish what you want: >=20 > (define (my-xdef? name mode) (if (equal? name =E2=80=9C__GNUC__=E2=80=9D= ) #f (env? mode =E2=80=98code)) >=20 > (parse-c99 #:xdef? my-xdef? =E2=80=A6) >=20 The idea here is that there are two =E2=80=9Cmodes=E2=80=9D for parsing. = "file" mode will pass the CPP statements to the AST and =E2=80=9Ccode=E2=80= =9D mode will not. There is a procedure keyword argument #mode to = control these. Matt