unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Matt Wette <matt.wette@gmail.com>
To: Matt Wette <matt.wette@gmail.com>
Cc: guile-user@gnu.org
Subject: Re: nyacc 0.73.0 released
Date: Sat, 31 Dec 2016 08:08:27 -0800	[thread overview]
Message-ID: <04AF8714-9C32-4EA1-A3BC-74FBFF2EB478@gmail.com> (raw)
In-Reply-To: <EC0FE79C-956B-464E-AE79-606A48DFE689@gmail.com>


> On Dec 31, 2016, at 7:57 AM, Matt Wette <matt.wette@gmail.com> wrote:

>   I think this may accomplish what you want:
> 
> (define (my-xdef? name mode) (if (equal? name “__GNUC__”) #f (env? mode ‘code))
> 
> (parse-c99 #:xdef? my-xdef? …)
> 

The idea here is that there are two “modes” for parsing.  "file" mode will pass the CPP statements to the AST and “code” mode will not.  There is a procedure keyword argument #mode to control these.

Matt




  reply	other threads:[~2016-12-31 16:08 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-26  4:05 nyacc 0.73.0 released Matt Wette
2016-12-26  7:29 ` Jan Nieuwenhuizen
2016-12-26 14:53   ` Matt Wette
2016-12-31 14:15     ` Jan Nieuwenhuizen
2016-12-31 15:57       ` Matt Wette
2016-12-31 16:08         ` Matt Wette [this message]
2017-01-01 12:22           ` Jan Nieuwenhuizen
2017-01-01  0:04       ` Matt Wette
2017-01-01 12:32         ` Jan Nieuwenhuizen
2017-01-07 11:14 ` Jan Nieuwenhuizen
2017-01-07 14:19   ` Matt Wette
2017-01-07 20:02     ` Jan Nieuwenhuizen
2017-01-11  2:33 ` Chaos Eternal
2017-01-11  2:58   ` Matt Wette

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=04AF8714-9C32-4EA1-A3BC-74FBFF2EB478@gmail.com \
    --to=matt.wette@gmail.com \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).