[Top][All Lists]

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

Re: Nyacc patches for Mes to avoid bundling?

From: Jan Nieuwenhuizen
Subject: Re: Nyacc patches for Mes to avoid bundling?
Date: Sat, 06 May 2017 18:00:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

Matt Wette writes:

> Split-cppdef is now sing just string functions:
> (define (split-cppdef defstr)
>   (let ((x2st (string-index defstr #\()) ; start of args
>       (x2nd (string-index defstr #\))) ; end of args
>       (x3 (string-index defstr #\=)))  ; start of replacement
>     (cond
>      ((not x3) #f)
>      ((and x2st x3)
>       ;;(if (not (eq? (1+ x2nd) x3)) (c99-err "bad CPP def: ~S" defstr))
>       (cons* (substring defstr 0 x2st)
>            (string-split
>             (string-delete #\space (substring defstr (1+ x2st) x2nd))
>             #\,)
>            (substring defstr (1+ x3))))
>      (else
>       (cons (substring defstr 0 x3) (substring defstr (1+ x3)))))))

Very nice, thank you so much!

> And with regard to your name clashes I have added prefixes.  Here is the call 
> to generate the table and action files:
>   (write-lalr-actions c99-mach (xtra-dir "") #:prefix "c99-")
>   (write-lalr-tables c99-mach (xtra-dir "") #:prefix "c99-“)

Okay, beautiful.  You distribute these in Git too, right?

> These should show up in the first nyacc release after 0.77.0.

I'll be looking to make a new Mes release for Guix too, with Nyacc
unbundled.  For that, we need to package Nyacc and having `./configure
make install' would be the first step.  Do you have plans or ideas for

If you want I could have a look and copy what I've for Mes, but Nyacc
can be much simpler.  I never use autotools but do try to conform to GNU


Jan Nieuwenhuizen <address@hidden> | GNU LilyPond
Freelance IT | Avatar®  

reply via email to

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