1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

Fix brainfuck->scheme compiler.

* module/language/brainfuck/compile-scheme.scm (compile-scheme): Fix
  brainfuck compiler.
This commit is contained in:
Andy Wingo 2013-12-02 19:00:57 +01:00
parent 79657fd3ec
commit cdc75fd001

View file

@ -1,6 +1,6 @@
;;; Brainfuck for GNU Guile
;; Copyright (C) 2009 Free Software Foundation, Inc.
;; Copyright (C) 2009, 2013 Free Software Foundation, Inc.
;; This library is free software; you can redistribute it and/or
;; modify it under the terms of the GNU Lesser General Public
@ -55,11 +55,8 @@
(values
`(let ((pointer 0)
(tape (make-vector ,tape-size 0)))
,@(if (not (eq? '<brainfuck> (car exp)))
(error "expected brainfuck program")
`(begin
,@(compile-body (cdr exp))
(write-char #\newline))))
,@(compile-body (cdr exp))
(write-char #\newline))
env
env))