guile-user
[Top][All Lists]
Advanced

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

Re: nyacc 0.73.0 released


From: Matt Wette
Subject: Re: nyacc 0.73.0 released
Date: Sat, 7 Jan 2017 06:19:27 -0800

> On Jan 7, 2017, at 3:14 AM, Jan Nieuwenhuizen <address@hidden> 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 via email to

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