From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jan Nieuwenhuizen Newsgroups: gmane.lisp.guile.user Subject: Re: Nyacc patches for Mes to avoid bundling? Date: Sat, 06 May 2017 18:00:01 +0200 Organization: AvatarAcademy.nl Message-ID: <87wp9u6kn2.fsf@gnu.org> References: <87bmr93jot.fsf@gnu.org> <1B4686A9-DAC0-4DD4-B11B-78629E0C5339@gmail.com> <20B29595-EC72-4660-815A-0261AD88B519@gmail.com> <87shkj96qi.fsf@gnu.org> <500F7340-E32F-4F6D-89EB-66B94DFF1754@gmail.com> <87o9v78m2y.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1494086536 16566 195.159.176.226 (6 May 2017 16:02:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 May 2017 16:02:16 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: guile-user@gnu.org To: Matt Wette Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat May 06 18:02:11 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 1d729r-0004CM-8d for guile-user@m.gmane.org; Sat, 06 May 2017 18:02:11 +0200 Original-Received: from localhost ([::1]:51950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d729w-0001xk-KJ for guile-user@m.gmane.org; Sat, 06 May 2017 12:02:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7280-00014G-Qy for guile-user@gnu.org; Sat, 06 May 2017 12:00:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d727z-0008CT-Sp for guile-user@gnu.org; Sat, 06 May 2017 12:00:16 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d727p-000858-Ri; Sat, 06 May 2017 12:00:05 -0400 Original-Received: from peder.onsbrabantnet.nl ([88.159.206.46]:49918 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1d727p-0001mE-8s; Sat, 06 May 2017 12:00:05 -0400 X-Url: http://AvatarAcademy.nl In-Reply-To: (Matt Wette's message of "Sat, 6 May 2017 08:21:12 -0700") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:13682 Archived-At: 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 #\=3D))) ; 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 "c99act.scm.new") #:prefix "c99-= ") > (write-lalr-tables c99-mach (xtra-dir "c99tab.scm.new") #:prefix "c99-= =E2=80=9C) 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 that? 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 standards. Greetings, janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.nl= =20=20