Fix brainfuck->scheme compiler.
authorAndy Wingo <wingo@pobox.com>
Mon, 2 Dec 2013 18:00:57 +0000 (19:00 +0100)
committerAndy Wingo <wingo@pobox.com>
Mon, 2 Dec 2013 18:03:48 +0000 (19:03 +0100)
* module/language/brainfuck/compile-scheme.scm (compile-scheme): Fix
  brainfuck compiler.

module/language/brainfuck/compile-scheme.scm

index 86bc35f..7a2568d 100644 (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
   (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))