mes: Move base-0.mes int boot-0.scm.
* module/mes/boot-02.scm: New file, rename from boot-0.scm. * module/mes/boot-0.scm: Add base-0.mes. * module/mes/base-0.mes: Remove.
This commit is contained in:
parent
b200366f27
commit
0d0c7a415b
|
@ -27,10 +27,10 @@
|
||||||
|
|
||||||
(define-macro (mes-use-module . rest) #t)
|
(define-macro (mes-use-module . rest) #t)
|
||||||
(define builtin? procedure?) ; not strictly true, but ok for tests/*.test
|
(define builtin? procedure?) ; not strictly true, but ok for tests/*.test
|
||||||
(define mes? (pair? (current-module)))
|
(cond-expand
|
||||||
(define guile? (not (pair? (current-module))))
|
(mes)
|
||||||
(define guile-1.8? (equal? (effective-version) "1.8"))
|
(guile-2)
|
||||||
(define guile-2? (and (not mes?) (not guile-1.8?)))
|
(guile
|
||||||
(if guile-1.8? (use-modules (ice-9 syncase)))
|
(use-modules (ice-9 syncase))))
|
||||||
(define EOF (if #f #f))
|
(define EOF (if #f #f))
|
||||||
(define append2 append)
|
(define append2 append)
|
||||||
|
|
4
make.scm
4
make.scm
|
@ -520,7 +520,7 @@ exec ${GUILE-guile} --no-auto-compile -L . -L guile -C . -C guile -s "$0" ${1+"$
|
||||||
(define* ((install-dir #:key dir) name)
|
(define* ((install-dir #:key dir) name)
|
||||||
(add-target (install name #:dir (string-append dir "/" (dirname name)))))
|
(add-target (install name #:dir (string-append dir "/" (dirname name)))))
|
||||||
|
|
||||||
(add-target (install "module/mes/base-0.mes" #:dir (string-append %moduledir "/mes") #:substitutes #t))
|
(add-target (install "module/mes/boot-0.scm" #:dir (string-append %moduledir "/mes") #:substitutes #t))
|
||||||
(add-target (install "module/language/c99/compiler.mes" #:dir (string-append %moduledir "/language/c99") #:substitutes #t))
|
(add-target (install "module/language/c99/compiler.mes" #:dir (string-append %moduledir "/language/c99") #:substitutes #t))
|
||||||
|
|
||||||
(define %module-dir "share/mes")
|
(define %module-dir "share/mes")
|
||||||
|
@ -538,11 +538,11 @@ exec ${GUILE-guile} --no-auto-compile -L . -L guile -C . -C guile -s "$0" ${1+"$
|
||||||
"module/mes/as-i386.scm"
|
"module/mes/as-i386.scm"
|
||||||
"module/mes/as.mes"
|
"module/mes/as.mes"
|
||||||
"module/mes/as.scm"
|
"module/mes/as.scm"
|
||||||
;;"module/mes/base-0.mes"
|
|
||||||
"module/mes/base.mes"
|
"module/mes/base.mes"
|
||||||
"module/mes/boot-0.scm"
|
"module/mes/boot-0.scm"
|
||||||
"module/mes/boot-00.scm"
|
"module/mes/boot-00.scm"
|
||||||
"module/mes/boot-01.scm"
|
"module/mes/boot-01.scm"
|
||||||
|
"module/mes/boot-02.scm"
|
||||||
"module/mes/bytevectors.mes"
|
"module/mes/bytevectors.mes"
|
||||||
"module/mes/bytevectors.scm"
|
"module/mes/bytevectors.scm"
|
||||||
"module/mes/catch.mes"
|
"module/mes/catch.mes"
|
||||||
|
|
|
@ -1,142 +0,0 @@
|
||||||
;;; -*-scheme-*-
|
|
||||||
|
|
||||||
;;; Mes --- Maxwell Equations of Software
|
|
||||||
;;; Copyright © 2016,2017,2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
|
||||||
;;;
|
|
||||||
;;; This file is part of Mes.
|
|
||||||
;;;
|
|
||||||
;;; Mes is free software; you can redistribute it and/or modify it
|
|
||||||
;;; under the terms of the GNU General Public License as published by
|
|
||||||
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
||||||
;;; your option) any later version.
|
|
||||||
;;;
|
|
||||||
;;; Mes is distributed in the hope that it will be useful, but
|
|
||||||
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
;;; GNU General Public License for more details.
|
|
||||||
;;;
|
|
||||||
;;; You should have received a copy of the GNU General Public License
|
|
||||||
;;; along with Mes. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
;;; Commentary:
|
|
||||||
|
|
||||||
;;; base-0.mes is the first file being loaded from the Mes core. It
|
|
||||||
;;; provides primitives that use Mes internals to create the illusion
|
|
||||||
;;; of compatibility with Guile. It is not safe to be run by Guile.
|
|
||||||
|
|
||||||
;;; Code:
|
|
||||||
|
|
||||||
(define mes? #t)
|
|
||||||
(define guile? #f)
|
|
||||||
(define guile-1.8? #f)
|
|
||||||
(define guile-2? #f)
|
|
||||||
|
|
||||||
(define (primitive-eval e) (core:eval e (current-module)))
|
|
||||||
(define eval core:eval)
|
|
||||||
|
|
||||||
(define (current-output-port) 1)
|
|
||||||
(define (current-error-port) 2)
|
|
||||||
(define (port-filename port) "<stdin>")
|
|
||||||
(define (port-line port) 0)
|
|
||||||
(define (port-column port) 0)
|
|
||||||
(define (ftell port) 0)
|
|
||||||
(define (false-if-exception x) x)
|
|
||||||
|
|
||||||
(define (cons* . rest)
|
|
||||||
(if (null? (cdr rest)) (car rest)
|
|
||||||
(cons (car rest) (core:apply cons* (cdr rest) (current-module)))))
|
|
||||||
|
|
||||||
(define (apply f h . t)
|
|
||||||
(if (null? t) (core:apply f h (current-module))
|
|
||||||
(apply f (apply cons* (cons h t)))))
|
|
||||||
|
|
||||||
(define-macro (cond . clauses)
|
|
||||||
(list 'if (pair? clauses)
|
|
||||||
(list (cons
|
|
||||||
'lambda
|
|
||||||
(cons
|
|
||||||
'(test)
|
|
||||||
(list (list 'if 'test
|
|
||||||
(if (pair? (cdr (car clauses)))
|
|
||||||
(if (eq? (car (cdr (car clauses))) '=>)
|
|
||||||
(append2 (cdr (cdr (car clauses))) '(test))
|
|
||||||
(list (cons 'lambda (cons '() (cons 'test (cdr (car clauses)))))))
|
|
||||||
(list (cons 'lambda (cons '() (cons 'test (cdr (car clauses)))))))
|
|
||||||
(if (pair? (cdr clauses))
|
|
||||||
(cons 'cond (cdr clauses)))))))
|
|
||||||
(car (car clauses)))))
|
|
||||||
|
|
||||||
(define else #t)
|
|
||||||
|
|
||||||
(define-macro (load file)
|
|
||||||
(list 'begin
|
|
||||||
(list 'if (list getenv "MES_DEBUG")
|
|
||||||
(list 'begin
|
|
||||||
(list core:display-error ";;; read ")
|
|
||||||
(list core:display-error file)
|
|
||||||
(list core:display-error "\n")))
|
|
||||||
(list 'primitive-load file)))
|
|
||||||
|
|
||||||
(define-macro (include file) (list 'load file))
|
|
||||||
|
|
||||||
(define (append . rest)
|
|
||||||
(if (null? rest) '()
|
|
||||||
(if (null? (cdr rest)) (car rest)
|
|
||||||
(append2 (car rest) (apply append (cdr rest))))))
|
|
||||||
|
|
||||||
(define (string->list s)
|
|
||||||
(core:car s))
|
|
||||||
|
|
||||||
(define %prefix (getenv "MES_PREFIX"))
|
|
||||||
(define %moduledir
|
|
||||||
(if (not %prefix) "module/"
|
|
||||||
(list->string
|
|
||||||
(append (string->list %prefix)
|
|
||||||
(string->list "/module") ; `module/' gets replaced upon install
|
|
||||||
(string->list "/")))))
|
|
||||||
|
|
||||||
;;(primitive-load "module/mes/type-0.mes")
|
|
||||||
(include (list->string
|
|
||||||
(append2 (string->list %moduledir) (string->list "/mes/type-0.mes"))))
|
|
||||||
|
|
||||||
(define (symbol->string s)
|
|
||||||
(apply string (symbol->list s)))
|
|
||||||
|
|
||||||
(define (string-append . rest)
|
|
||||||
(apply string (apply append (map1 string->list rest))))
|
|
||||||
|
|
||||||
(define %version (if (eq? (car (string->list "@VERSION@")) #\@) "git"
|
|
||||||
"@VERSION@"))
|
|
||||||
(define (effective-version) %version)
|
|
||||||
|
|
||||||
(if (getenv "MES_DEBUG")
|
|
||||||
(begin
|
|
||||||
(core:display-error ";;; %moduledir=")
|
|
||||||
(core:display-error %moduledir)
|
|
||||||
(core:display-error "\n")))
|
|
||||||
|
|
||||||
(define-macro (include-from-path file)
|
|
||||||
(list 'load (list string-append %moduledir file)))
|
|
||||||
|
|
||||||
(define (string-join lst infix)
|
|
||||||
(if (null? (cdr lst)) (car lst)
|
|
||||||
(string-append (car lst) infix (string-join (cdr lst) infix))))
|
|
||||||
|
|
||||||
(include-from-path "mes/module.mes")
|
|
||||||
|
|
||||||
(mes-use-module (mes base-0))
|
|
||||||
|
|
||||||
(mes-use-module (mes base))
|
|
||||||
;; (mes-use-module (srfi srfi-0))
|
|
||||||
(mes-use-module (mes quasiquote))
|
|
||||||
(mes-use-module (mes let))
|
|
||||||
|
|
||||||
(mes-use-module (mes scm))
|
|
||||||
|
|
||||||
(mes-use-module (srfi srfi-1)) ;; FIXME: module read order
|
|
||||||
(mes-use-module (srfi srfi-13))
|
|
||||||
|
|
||||||
(mes-use-module (mes fluids)) ;; FIXME: module read order
|
|
||||||
(mes-use-module (mes catch))
|
|
||||||
|
|
||||||
(mes-use-module (mes posix))
|
|
|
@ -93,6 +93,7 @@
|
||||||
(append2 (car rest) (apply append (cdr rest))))))
|
(append2 (car rest) (apply append (cdr rest))))))
|
||||||
;; end boot-01.scm
|
;; end boot-01.scm
|
||||||
|
|
||||||
|
;; boot-02.scm
|
||||||
(define-macro (and . x)
|
(define-macro (and . x)
|
||||||
(if (null? x) #t
|
(if (null? x) #t
|
||||||
(if (null? (cdr x)) (car x)
|
(if (null? (cdr x)) (car x)
|
||||||
|
@ -113,7 +114,116 @@
|
||||||
|
|
||||||
(define-macro (mes-use-module module)
|
(define-macro (mes-use-module module)
|
||||||
#t)
|
#t)
|
||||||
|
;; end boot-02.scm
|
||||||
|
|
||||||
|
;; boot-0.scm
|
||||||
|
(define (primitive-eval e) (core:eval e (current-module)))
|
||||||
|
(define eval core:eval)
|
||||||
|
|
||||||
|
(define (current-output-port) 1)
|
||||||
|
(define (current-error-port) 2)
|
||||||
|
(define (port-filename port) "<stdin>")
|
||||||
|
(define (port-line port) 0)
|
||||||
|
(define (port-column port) 0)
|
||||||
|
(define (ftell port) 0)
|
||||||
|
(define (false-if-exception x) x)
|
||||||
|
|
||||||
|
(define (cons* . rest)
|
||||||
|
(if (null? (cdr rest)) (car rest)
|
||||||
|
(cons (car rest) (core:apply cons* (cdr rest) (current-module)))))
|
||||||
|
|
||||||
|
(define (apply f h . t)
|
||||||
|
(if (null? t) (core:apply f h (current-module))
|
||||||
|
(apply f (apply cons* (cons h t)))))
|
||||||
|
|
||||||
|
(define-macro (cond . clauses)
|
||||||
|
(list 'if (pair? clauses)
|
||||||
|
(list (cons
|
||||||
|
'lambda
|
||||||
|
(cons
|
||||||
|
'(test)
|
||||||
|
(list (list 'if 'test
|
||||||
|
(if (pair? (cdr (car clauses)))
|
||||||
|
(if (eq? (car (cdr (car clauses))) '=>)
|
||||||
|
(append2 (cdr (cdr (car clauses))) '(test))
|
||||||
|
(list (cons 'lambda (cons '() (cons 'test (cdr (car clauses)))))))
|
||||||
|
(list (cons 'lambda (cons '() (cons 'test (cdr (car clauses)))))))
|
||||||
|
(if (pair? (cdr clauses))
|
||||||
|
(cons 'cond (cdr clauses)))))))
|
||||||
|
(car (car clauses)))))
|
||||||
|
|
||||||
|
(define else #t)
|
||||||
|
|
||||||
|
(define-macro (load file)
|
||||||
|
(list 'begin
|
||||||
|
(list 'if (list getenv "MES_DEBUG")
|
||||||
|
(list 'begin
|
||||||
|
(list core:display-error ";;; read ")
|
||||||
|
(list core:display-error file)
|
||||||
|
(list core:display-error "\n")))
|
||||||
|
(list 'primitive-load file)))
|
||||||
|
|
||||||
|
(define-macro (include file) (list 'load file))
|
||||||
|
|
||||||
|
(define (append . rest)
|
||||||
|
(if (null? rest) '()
|
||||||
|
(if (null? (cdr rest)) (car rest)
|
||||||
|
(append2 (car rest) (apply append (cdr rest))))))
|
||||||
|
|
||||||
|
(define (string->list s)
|
||||||
|
(core:car s))
|
||||||
|
|
||||||
|
(define %prefix (getenv "MES_PREFIX"))
|
||||||
|
(define %moduledir
|
||||||
|
(if (not %prefix) "module/"
|
||||||
|
(list->string
|
||||||
|
(append (string->list %prefix)
|
||||||
|
(string->list "/module") ; `module/' gets replaced upon install
|
||||||
|
(string->list "/")))))
|
||||||
|
|
||||||
|
(include (list->string
|
||||||
|
(append2 (string->list %moduledir) (string->list "/mes/type-0.mes"))))
|
||||||
|
|
||||||
|
(define (symbol->string s)
|
||||||
|
(apply string (symbol->list s)))
|
||||||
|
|
||||||
|
(define (string-append . rest)
|
||||||
|
(apply string (apply append (map1 string->list rest))))
|
||||||
|
|
||||||
|
(define %version (if (eq? (car (string->list "@VERSION@")) #\@) "git"
|
||||||
|
"@VERSION@"))
|
||||||
|
(define (effective-version) %version)
|
||||||
|
|
||||||
|
(if (getenv "MES_DEBUG")
|
||||||
|
(begin
|
||||||
|
(core:display-error ";;; %moduledir=")
|
||||||
|
(core:display-error %moduledir)
|
||||||
|
(core:display-error "\n")))
|
||||||
|
|
||||||
|
(define-macro (include-from-path file)
|
||||||
|
(list 'load (list string-append %moduledir file)))
|
||||||
|
|
||||||
|
(define (string-join lst infix)
|
||||||
|
(if (null? (cdr lst)) (car lst)
|
||||||
|
(string-append (car lst) infix (string-join (cdr lst) infix))))
|
||||||
|
|
||||||
|
(include-from-path "mes/module.mes")
|
||||||
|
|
||||||
|
(mes-use-module (mes base))
|
||||||
|
;; ;; (mes-use-module (srfi srfi-0))
|
||||||
|
(mes-use-module (mes quasiquote))
|
||||||
|
(mes-use-module (mes let))
|
||||||
|
|
||||||
|
(mes-use-module (mes scm))
|
||||||
|
|
||||||
|
(mes-use-module (srfi srfi-1)) ;; FIXME: module read order
|
||||||
|
(mes-use-module (srfi srfi-13))
|
||||||
|
|
||||||
|
(mes-use-module (mes fluids)) ;; FIXME: module read order
|
||||||
|
(mes-use-module (mes catch))
|
||||||
|
|
||||||
|
(mes-use-module (mes posix))
|
||||||
|
;; ;; end boot-0.scm
|
||||||
|
|
||||||
;;((lambda (*program*) *program*) (primitive-load 0))
|
|
||||||
(primitive-load 0)
|
(primitive-load 0)
|
||||||
|
(primitive-load 0)
|
||||||
|
|
|
@ -31,5 +31,4 @@
|
||||||
(cons 'begin (cond-expand-expander clauses)))
|
(cons 'begin (cond-expand-expander clauses)))
|
||||||
;; end boot-00.scm
|
;; end boot-00.scm
|
||||||
|
|
||||||
;;((lambda (*program*) *program*) (primitive-load 0))
|
|
||||||
(primitive-load 0)
|
(primitive-load 0)
|
||||||
|
|
|
@ -81,5 +81,4 @@
|
||||||
(append2 (car rest) (apply append (cdr rest))))))
|
(append2 (car rest) (apply append (cdr rest))))))
|
||||||
;; end boot-01.scm
|
;; end boot-01.scm
|
||||||
|
|
||||||
;;((lambda (*program*) *program*) (primitive-load 0))
|
|
||||||
(primitive-load 0)
|
(primitive-load 0)
|
||||||
|
|
119
module/mes/boot-02.scm
Normal file
119
module/mes/boot-02.scm
Normal file
|
@ -0,0 +1,119 @@
|
||||||
|
;;; -*-scheme-*-
|
||||||
|
|
||||||
|
;;; Mes --- Maxwell Equations of Software
|
||||||
|
;;; Copyright © 2016,2017,2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
||||||
|
;;;
|
||||||
|
;;; This file is part of Mes.
|
||||||
|
;;;
|
||||||
|
;;; Mes is free software; you can redistribute it and/or modify it
|
||||||
|
;;; under the terms of the GNU General Public License as published by
|
||||||
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
||||||
|
;;; your option) any later version.
|
||||||
|
;;;
|
||||||
|
;;; Mes is distributed in the hope that it will be useful, but
|
||||||
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
;;; GNU General Public License for more details.
|
||||||
|
;;;
|
||||||
|
;;; You should have received a copy of the GNU General Public License
|
||||||
|
;;; along with Mes. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
;;; Commentary:
|
||||||
|
|
||||||
|
;;; read-0.mes - bootstrap reader. This file is read by a minimal
|
||||||
|
;;; core reader. It only supports s-exps and line-comments; quotes,
|
||||||
|
;;; character literals, string literals cannot be used here.
|
||||||
|
|
||||||
|
;;; Code:
|
||||||
|
|
||||||
|
;; boot-00.scm
|
||||||
|
(define mes %version)
|
||||||
|
|
||||||
|
(define (defined? x)
|
||||||
|
(assq x (current-module)))
|
||||||
|
|
||||||
|
(define (cond-expand-expander clauses)
|
||||||
|
(if (defined? (car (car clauses)))
|
||||||
|
(cdr (car clauses))
|
||||||
|
(cond-expand-expander (cdr clauses))))
|
||||||
|
|
||||||
|
(define-macro (cond-expand . clauses)
|
||||||
|
(cons 'begin (cond-expand-expander clauses)))
|
||||||
|
;; end boot-00.scm
|
||||||
|
|
||||||
|
;; boot-01.scm
|
||||||
|
(define <cell:character> 0)
|
||||||
|
(define <cell:pair> 7)
|
||||||
|
(define <cell:string> 10)
|
||||||
|
|
||||||
|
(define (pair? x) (eq? (core:type x) <cell:pair>))
|
||||||
|
(define (not x) (if x #f #t))
|
||||||
|
|
||||||
|
(define (display x . rest)
|
||||||
|
(if (null? rest) (core:display x)
|
||||||
|
(core:display-port x (car rest))))
|
||||||
|
|
||||||
|
(define (write x . rest)
|
||||||
|
(if (null? rest) (core:write x)
|
||||||
|
(core:write-port x (car rest))))
|
||||||
|
|
||||||
|
(define (list->string lst)
|
||||||
|
(core:make-cell <cell:string> lst 0))
|
||||||
|
|
||||||
|
(define (integer->char x)
|
||||||
|
(core:make-cell <cell:character> 0 x))
|
||||||
|
|
||||||
|
(define (newline . rest)
|
||||||
|
(core:display (list->string (list (integer->char 10)))))
|
||||||
|
|
||||||
|
(define (string->list s)
|
||||||
|
(core:car s))
|
||||||
|
|
||||||
|
(define (cadr x) (car (cdr x)))
|
||||||
|
|
||||||
|
(define (map1 f lst)
|
||||||
|
(if (null? lst) (list)
|
||||||
|
(cons (f (car lst)) (map1 f (cdr lst)))))
|
||||||
|
|
||||||
|
(define (map f lst)
|
||||||
|
(if (null? lst) (list)
|
||||||
|
(cons (f (car lst)) (map f (cdr lst)))))
|
||||||
|
|
||||||
|
(define (cons* . rest)
|
||||||
|
(if (null? (cdr rest)) (car rest)
|
||||||
|
(cons (car rest) (core:apply cons* (cdr rest) (current-module)))))
|
||||||
|
|
||||||
|
(define (apply f h . t)
|
||||||
|
(if (null? t) (core:apply f h (current-module))
|
||||||
|
(apply f (apply cons* (cons h t)))))
|
||||||
|
|
||||||
|
(define (append . rest)
|
||||||
|
(if (null? rest) '()
|
||||||
|
(if (null? (cdr rest)) (car rest)
|
||||||
|
(append2 (car rest) (apply append (cdr rest))))))
|
||||||
|
;; end boot-01.scm
|
||||||
|
|
||||||
|
;; boot-02.scm
|
||||||
|
(define-macro (and . x)
|
||||||
|
(if (null? x) #t
|
||||||
|
(if (null? (cdr x)) (car x)
|
||||||
|
(list (quote if) (car x) (cons (quote and) (cdr x))
|
||||||
|
#f))))
|
||||||
|
|
||||||
|
(define-macro (or . x)
|
||||||
|
(if (null? x) #f
|
||||||
|
(if (null? (cdr x)) (car x)
|
||||||
|
(list (list (quote lambda) (list (quote r))
|
||||||
|
(list (quote if) (quote r) (quote r)
|
||||||
|
(cons (quote or) (cdr x))))
|
||||||
|
(car x)))))
|
||||||
|
|
||||||
|
(define-macro (module-define! module name value)
|
||||||
|
;;(list 'define name value)
|
||||||
|
#t)
|
||||||
|
|
||||||
|
(define-macro (mes-use-module module)
|
||||||
|
#t)
|
||||||
|
;; end boot-02.scm
|
||||||
|
|
||||||
|
(primitive-load 0)
|
|
@ -24,4 +24,3 @@
|
||||||
|
|
||||||
(define R_OK 0)
|
(define R_OK 0)
|
||||||
(define S_IRWXU #o700)
|
(define S_IRWXU #o700)
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,22 @@
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
(mes-use-module (mes base))
|
(mes-use-module (mes base))
|
||||||
(define guile? (not (pair? (current-module))))
|
(cond-expand
|
||||||
|
(mes
|
||||||
|
(define mes? #t)
|
||||||
|
(define guile? #f)
|
||||||
|
(define guile-2? #f)
|
||||||
|
(define guile-1.8? #f))
|
||||||
|
(guile-2
|
||||||
|
(define mes? #f)
|
||||||
|
(define guile? #t)
|
||||||
|
(define guile-2? #t)
|
||||||
|
(define guile-1.8? #f))
|
||||||
|
(guile
|
||||||
|
(define mes? #f)
|
||||||
|
(define guile? #f)
|
||||||
|
(define guile-2? #f)
|
||||||
|
(define guile-1.8? #t)))
|
||||||
|
|
||||||
(define result
|
(define result
|
||||||
((lambda (pass fail)
|
((lambda (pass fail)
|
||||||
|
|
|
@ -10,7 +10,7 @@ then
|
||||||
fi
|
fi
|
||||||
MES_MODULEDIR=${MES_MODULEDIR-$MES_PREFIX/"module"}
|
MES_MODULEDIR=${MES_MODULEDIR-$MES_PREFIX/"module"}
|
||||||
export MES_MODULEDIR
|
export MES_MODULEDIR
|
||||||
echo '()' | cat $MES_MODULEDIR/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS -- "$@"
|
$MES $MES_FLAGS -- "$@" < $0
|
||||||
#paredit:||
|
#paredit:||
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/mes}
|
MES=${MES-$(dirname $0)/mes}
|
||||||
#MES_ARENA=${MES_ARENA-30000000}
|
export MES_ARENA=${MES_ARENA-40000}
|
||||||
#export MES_ARENA
|
|
||||||
prefix=module/
|
prefix=module/
|
||||||
cat $prefix/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS -- "$@"
|
cat $0 /dev/stdin | $MES $MES_FLAGS -- "$@"
|
||||||
#paredit:|
|
#paredit:|
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
|
@ -24,9 +24,12 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <mlibc.h>
|
#include <mlibc.h>
|
||||||
|
|
||||||
int ARENA_SIZE = 20000000; // 32B: 100 MiB, 64b: 200 MiB
|
// minimal for boot-0.scm
|
||||||
#if 1 //__MESC__
|
// int ARENA_SIZE = 100000; // 32b: 1MiB, 64b: 2 MiB
|
||||||
int MAX_ARENA_SIZE = 172100000; // 32b: ~ 2GiB
|
// take a bit more to run all tests
|
||||||
|
int ARENA_SIZE = 400000; // 32b: 1MiB, 64b: 2 MiB
|
||||||
|
#if !_POSIX_SOURCE
|
||||||
|
int MAX_ARENA_SIZE = 166600000; // 32b: ~ 2GiB
|
||||||
#else
|
#else
|
||||||
int MAX_ARENA_SIZE = 200000000; // 32b: 2.3GiB, 64b: 4.6GiB
|
int MAX_ARENA_SIZE = 200000000; // 32b: 2.3GiB, 64b: 4.6GiB
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
@ -33,10 +33,6 @@ exit $?
|
||||||
|
|
||||||
(pass-if "lambda" (symbol? 'lambda))
|
(pass-if "lambda" (symbol? 'lambda))
|
||||||
|
|
||||||
(cond-expand
|
|
||||||
(guile (define append2 append))
|
|
||||||
(mes))
|
|
||||||
|
|
||||||
(pass-if-equal "append" '(0 1) (append2 '(0) '(1)))
|
(pass-if-equal "append" '(0 1) (append2 '(0) '(1)))
|
||||||
(pass-if-equal "append 2" '(0) (append2 '(0) '()))
|
(pass-if-equal "append 2" '(0) (append2 '(0) '()))
|
||||||
(pass-if-equal "append 3" '(0 1 2) (append '(0) '(1) '(2)))
|
(pass-if-equal "append 3" '(0 1 2) (append '(0) '(1) '(2)))
|
||||||
|
@ -99,9 +95,9 @@ exit $?
|
||||||
(pass-if-equal "primitive-load" 42 (primitive-load "tests/data/load.scm") the-answer)
|
(pass-if-equal "primitive-load" 42 (primitive-load "tests/data/load.scm") the-answer)
|
||||||
|
|
||||||
(cond-expand
|
(cond-expand
|
||||||
(guile)
|
|
||||||
(mes
|
(mes
|
||||||
(pass-if-equal "include" 42 (include "tests/data/load.scm") the-answer)))
|
(pass-if-equal "include" 42 (include "tests/data/load.scm") the-answer))
|
||||||
|
(else))
|
||||||
|
|
||||||
(pass-if-eq "call/cc"
|
(pass-if-eq "call/cc"
|
||||||
0
|
0
|
||||||
|
@ -112,9 +108,11 @@ exit $?
|
||||||
(cont 2))))
|
(cont 2))))
|
||||||
#f #f))
|
#f #f))
|
||||||
|
|
||||||
(if (not guile?)
|
(cond-expand
|
||||||
(pass-if-not "#<eof>"
|
(mes
|
||||||
(char? (integer->char -1))))
|
(pass-if-not "#<eof>"
|
||||||
|
(char? (integer->char -1))))
|
||||||
|
(else))
|
||||||
|
|
||||||
(pass-if-equal "setenv, getenv"
|
(pass-if-equal "setenv, getenv"
|
||||||
"bar"
|
"bar"
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
export MES_BOOT=boot-02.scm
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
#echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
cat module/mes/base-0.mes $0 | $MES "$@"
|
|
||||||
#paredit:|
|
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES_ARENA=${MES_ARENA-10000000}
|
|
||||||
export MES_ARENA
|
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS $MES_FLAGS"$@"
|
#export MES_ARENA=${MES_ARENA-166000000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
#paredit:||
|
#paredit:||
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
# ***REMOVE THIS BLOCK COMMENT INITIALLY***
|
# ***REMOVE THIS BLOCK COMMENT INITIALLY***
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# -*-scheme-*-
|
# -*-scheme-*-
|
||||||
MES=${MES-$(dirname $0)/../src/mes}
|
MES=${MES-$(dirname $0)/../src/mes}
|
||||||
echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
#export MES_ARENA=${MES_ARENA-40000}
|
||||||
#paredit:||
|
$MES $MES_FLAGS "$@" < $0
|
||||||
exit $?
|
exit $?
|
||||||
!#
|
!#
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue