File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash -x
2
+
3
+ # Po = m(Co, Ps)
4
+ # Co = m(Co, Cs)
5
+
6
+ LISPKIT=./lispkit
7
+
8
+ function m {
9
+ Co=$1
10
+ Ps=$2
11
+ Po=$3
12
+ $LISPKIT $Co $Ps | fmt -w 80 > $Po
13
+ }
14
+
15
+ function d {
16
+ diff -y -d $1 $2
17
+ if [ $? -ne 0 ]; then
18
+ echo " ERROR: $1 and $2 are unstable"
19
+ exit 1;
20
+ fi
21
+ }
22
+
23
+ cat compiler.lisp | tr ' \n' ' ' | fmt -w 80 > compiler1.lisp
24
+ cat compiler.secd | tr ' \n' ' ' | fmt -w 80 > compiler1.secd
25
+
26
+ m " compiler1.secd" " compiler1.lisp" " compiler1.secd.out"
27
+ d " compiler1.secd" " compiler1.secd.out"
28
+ echo " 1 OK"
29
+ m " compiler1.secd" " compiler2.lisp" " compiler2.secd"
30
+ m " compiler2.secd" " compiler2.lisp" " compiler2.secd.out"
31
+ d " compiler2.secd" " compiler2.secd.out"
32
+ echo " 2 OK"
33
+ m " compiler2.secd" " compiler3.lisp" " compiler3.secd"
34
+ m " compiler3.secd" " compiler3.lisp" " compiler3.secd.out"
35
+ d " compiler3.secd" " compiler3.secd.out"
36
+ echo " 3 OK"
37
+
You can’t perform that action at this time.
0 commit comments