guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nyacc 0.73.0 released


From: Matt Wette
Subject: Re: nyacc 0.73.0 released
Date: Sat, 31 Dec 2016 08:08:27 -0800

> On Dec 31, 2016, at 7:57 AM, Matt Wette <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]