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 0.73.0 released Date: Sat, 07 Jan 2017 12:14:30 +0100 Organization: AvatarAcademy.nl Message-ID: <87bmvjxgtl.fsf@gnu.org> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1483787718 8893 195.159.176.226 (7 Jan 2017 11:15:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 7 Jan 2017 11:15:18 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: guile-user@gnu.org To: Matt Wette Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Jan 07 12:15:13 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 1cPoxl-0000be-PK for guile-user@m.gmane.org; Sat, 07 Jan 2017 12:15:05 +0100 Original-Received: from localhost ([::1]:57183 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPoxo-0005vO-BD for guile-user@m.gmane.org; Sat, 07 Jan 2017 06:15:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPoxT-0005vF-BY for guile-user@gnu.org; Sat, 07 Jan 2017 06:14:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cPoxQ-0007iw-4k for guile-user@gnu.org; Sat, 07 Jan 2017 06:14:47 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPoxG-0007gG-6E; Sat, 07 Jan 2017 06:14:34 -0500 Original-Received: from peder.onsbrabantnet.nl ([88.159.206.46]:48394 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 1cPoxF-0007ne-JG; Sat, 07 Jan 2017 06:14:33 -0500 X-Url: http://AvatarAcademy.nl In-Reply-To: (Matt Wette's message of "Sun, 25 Dec 2016 20:05:50 -0800") 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:13081 Archived-At: --=-=-= Content-Type: text/plain Matt Wette writes: Hi Matt! Find small bugfix for GOTO attached. I'm making some progress with Mescc. The compiler layout starts to make some sense now and after getting function calls and parameters in place and many special cases for call/if/for/when it seems that I finally have an idea that works for handling tests and expressions. So, now I'm starting list of tests that uses goto, which i'll need anyway for the core evaluator. Greetings, Jan. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-nyacc-bugfix-unquoto-goto-label.patch >From 19310561509a9c8babd57e0067d49b10980cf388 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sat, 7 Jan 2017 12:00:59 +0100 Subject: [PATCH] bugfix: unquoto goto label. * module/nyacc/lang/c99/mach.d/c99act.scm (act-v): Unquote goto label. --- module/nyacc/ChangeLog | 5 +++++ module/nyacc/lang/c99/mach.d/c99act.scm | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/module/nyacc/ChangeLog b/module/nyacc/ChangeLog index 1b08290..549a544 100644 --- a/module/nyacc/ChangeLog +++ b/module/nyacc/ChangeLog @@ -1,3 +1,8 @@ +2017-01-07 Jan Nieuwenhuizen + + * module/nyacc/lang/c99/mach.d/c99act.scm (act-v): Unquote goto + label. + 2017-01-02 Matt Wette * lang/c99/cppbody.scm (expand-cpp-mref): skip ws between ident diff --git a/module/nyacc/lang/c99/mach.d/c99act.scm b/module/nyacc/lang/c99/mach.d/c99act.scm index 10b5ffe..17f3f43 100644 --- a/module/nyacc/lang/c99/mach.d/c99act.scm +++ b/module/nyacc/lang/c99/mach.d/c99act.scm @@ -690,7 +690,7 @@ ;; opt-expression => expression (lambda ($1 . $rest) $1) ;; jump-statement => "goto" identifier ";" - (lambda ($3 $2 $1 . $rest) `(goto $2)) + (lambda ($3 $2 $1 . $rest) `(goto ,$2)) ;; jump-statement => "continue" ";" (lambda ($2 $1 . $rest) '(continue)) ;; jump-statement => "break" ";" -- 2.10.2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.nl= =20=20 --=-=-=--