unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Matt Wette <matt.wette@gmail.com>
To: Jan Nieuwenhuizen <janneke@gnu.org>
Cc: guile-user@gnu.org
Subject: Re: nyacc 0.73.0 released
Date: Sat, 7 Jan 2017 06:19:27 -0800	[thread overview]
Message-ID: <9A4B6D48-A9E5-4355-A717-934AD3FFA96D@gmail.com> (raw)
In-Reply-To: <87bmvjxgtl.fsf@gnu.org>


> On Jan 7, 2017, at 3:14 AM, Jan Nieuwenhuizen <janneke@gnu.org> wrote:
> 
> Matt Wette writes:
> 
> Hi Matt!
> 
> Find small bugfix for GOTO attached.


> 
> --- 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" ";"
> -- 

Thanks.  The bug is actually in lang/c99/mach.scm.  c99act.scm is output from running make-lalr-{spec,machine} on mach.scm,

    (jump-statement			; S 6.8.6
     ("goto" identifier ";" ($$ `(goto ,$2))). ;; <= was `(goto $2)
     ("continue" ";" ($$ '(continue)))
     ...

Also, I am currently working on the fixes branch to cleanup the C-preprocessor support so that #:mode ‘code works more robustly.

Matt





  reply	other threads:[~2017-01-07 14:19 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
2017-01-07 14:19   ` Matt Wette [this message]
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=9A4B6D48-A9E5-4355-A717-934AD3FFA96D@gmail.com \
    --to=matt.wette@gmail.com \
    --cc=guile-user@gnu.org \
    --cc=janneke@gnu.org \
    /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).