3 echo ' ()' | cat $($(dirname $0)/../scripts/include.mes $0) $0 /dev/stdin | $(dirname $0)/../scripts/mes "$@"
10 ;;; Mes --- Maxwell Equations of Software
11 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
13 ;;; let-syntax.test: This file is part of Mes.
15 ;;; Mes is free software; you can redistribute it and/or modify it
16 ;;; under the terms of the GNU General Public License as published by
17 ;;; the Free Software Foundation; either version 3 of the License, or (at
18 ;;; your option) any later version.
20 ;;; Mes is distributed in the hope that it will be useful, but
21 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
22 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 ;;; GNU General Public License for more details.
25 ;;; You should have received a copy of the GNU General Public License
26 ;;; along with Mes. If not, see <http://www.gnu.org/licenses/>.
28 (mes-use-module (mes base-0))
29 (mes-use-module (mes base))
30 (mes-use-module (mes quasiquote))
31 (mes-use-module (mes let))
32 (mes-use-module (mes scm))
33 (mes-use-module (mes syntax))
34 (mes-use-module (mes let-syntax))
35 (mes-use-module (mes test))
37 (pass-if "first dummy" #t)
38 (pass-if-not "second dummy" #f)
42 (let-syntax ((when (syntax-rules ()
43 ((when condition exp ...)
49 (pass-if "let-syntax no-leak"
56 (let-syntax ((when (syntax-rules ()
57 ((when condition exp ...)
60 (unless (syntax-rules ()
61 ((when condition exp ...)
64 (list (when #f 0) (unless #t 1)))