unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Jan Nieuwenhuizen <janneke@gnu.org>
To: Matt Wette <matt.wette@gmail.com>
Cc: guile-user@gnu.org
Subject: Re: nyacc 0.73.0 released
Date: Sat, 07 Jan 2017 12:14:30 +0100	[thread overview]
Message-ID: <87bmvjxgtl.fsf@gnu.org> (raw)
In-Reply-To: <A076F7F4-9AB1-43C9-82B9-79999B165C63@gmail.com> (Matt Wette's message of "Sun, 25 Dec 2016 20:05:50 -0800")

[-- Attachment #1: Type: text/plain, Size: 458 bytes --]

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.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-nyacc-bugfix-unquoto-goto-label.patch --]
[-- Type: text/x-patch, Size: 1401 bytes --]

From 19310561509a9c8babd57e0067d49b10980cf388 Mon Sep 17 00:00:00 2001
From: Jan Nieuwenhuizen <janneke@gnu.org>
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  <janneke@gnu.org>
+
+	* module/nyacc/lang/c99/mach.d/c99act.scm (act-v): Unquote goto
+	label.
+
 2017-01-02  Matt Wette  <mwette@alumni.caltech.edu>
 
 	* 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


[-- Attachment #3: Type: text/plain, Size: 154 bytes --]


-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar®  http://AvatarAcademy.nl  

  parent reply	other threads:[~2017-01-07 11:14 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
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 [this message]
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=87bmvjxgtl.fsf@gnu.org \
    --to=janneke@gnu.org \
    --cc=guile-user@gnu.org \
    --cc=matt.wette@gmail.com \
    /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).