3 MES=${MES-$(dirname $0)/../scripts/mes}
4 echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
11 ;;; Mes --- Maxwell Equations of Software
12 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
14 ;;; This file is part of Mes.
16 ;;; Mes is free software; you can redistribute it and/or modify it
17 ;;; under the terms of the GNU General Public License as published by
18 ;;; the Free Software Foundation; either version 3 of the License, or (at
19 ;;; your option) any later version.
21 ;;; Mes is distributed in the hope that it will be useful, but
22 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
23 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 ;;; GNU General Public License for more details.
26 ;;; You should have received a copy of the GNU General Public License
27 ;;; along with Mes. If not, see <http://www.gnu.org/licenses/>.
29 (define first (core:make-cell 0 0 #\F)) (newline)
31 (define one (core:make-cell 2 0 1))
32 (display "\n one=") (display one) (newline)
33 (define two (core:make-cell 2 0 2))
34 (define pair2-nil (core:make-cell 3 two '()))
35 (display "\npair2-nil=") (display pair2-nil) (newline)
38 (define list1-2 (core:make-cell 3 one pair2-nil))
39 (display "\nlist1-2=") (display list1-2) (newline)
42 (define three (core:make-cell 2 0 3))
43 (define four (core:make-cell 2 0 4))
44 (define pair4-nil (core:make-cell 3 four '()))
45 (define list3-4 (core:make-cell 3 three pair4-nil))
46 (define list1234 (core:make-cell 3 list1-2 list3-4))