echo "files"
echo "1 main"
echo "2 mine"
echo "3 defs"
echo "4 global_vars"
echo "5 globals_init"
echo "6 initids"
echo "7 stt"
echo "8 ststructs"
echo "9 mknode"
echo "10 listops consnodes - not in unicon"
# echo "11 consnodes"
echo "12 RIC"
echo "13 Compile & Link Russell" 
echo "14 edit mm2 - used to complie & link russell"
echo "17 listops.c & ststructs_cls"
echo "18 consnodes.c & ststructs_cls"
echo "19 errs + grammar.icn only"
echo "20 scanner"
echo "21 tmp + scanner "
echo "22 precedence "
echo "23 scan + scan inc"
echo "24 mkappl"
echo "25 mkappl2"
echo "26 outermost_op"
echo "27 single_arg"
echo "28 cand_cond"
echo "29 cor_cond"
echo "30 sig_out"
echo "31 sig_in"
echo "32 build_symtab"

echo "110 TEST init"
echo "111 TEST fact"
echo "112 TEST misc"
echo "113 TEST simp0001"
echo "114 TEST simp0002"
echo "123 TEST simp0011"
echo "124 TEST simp0012"
echo "125 TEST simp0013"
echo "888 NOTES.txt"
echo "999 quit"
echo "select"
read select
while [ $select -ne 999 ]
do 
case $select in
1)  emacs main.c main.icn;;
2)  emacs mine.icn;;
3)  emacs defs.icn;;
4)  emacs global_vars.icn;;
5)  emacs globals_init.icn;;
6)  emacs pass1/parser/initids.c pass1/parser/initids.icn;;
7)  emacs pass1/stt/stt.c pass1/stt/stt.icn;;
8)  emacs stree/ststructs.mh stree/ststructs_cls.icn;;
9)  emacs stree/mknode.c stree/mknode.icn;;
10) emacs stree/listops.c datatypes/consnodes.c;;
# 11) emacs datatypes/consnodes.c datatypes/consnodes_cls.icn;;
12) emacs pass5d/RIC.c pass5d/RIC.icn;;
13) ./mm;;
14)  emacs mm2;;
17) emacs stree/listops.c stree/ststructs_cls.icn;;
18) emacs datatypes/consnodes.c stree/ststructs_cls.icn;;
# 13) emacs pass1/parser/grammar.icn pass1/parser/grammar.y.icn;;
# 14) emacs iyaccerr.tmp pass1/parser/grammar.y.icn;;
# 15) emacs pass1/iyacc/test/calc.y pass1/parser/grammar.y.icn;;
# 16) emacs pass1/parser/grammar.c.y pass1/parser/grammar.y.icn;;
# 17) emacs pass1/parser/grammar.1st_try.y.icn pass1/parser/grammar.y.icn;;
# 18) emacs u.Makefile;;
19) emacs gram.tmp pass1/parser/grammar.fixed.icn;; 
20) emacs pass1/scanner/scan.c pass1/scanner/scan.icn;; 
21) emacs pass1/scanner/scan.tmp.icn.tmp.icn pass1/scanner/scan.icn;; 
22) emacs pass1/applinfer/precedence.c pass1/applinfer/precedence.icn;;
23) emacs pass1/scanner/scan.icn pass1/scanner/scan_inc.icn ;; 
24) emacs pass1/applinfer/mkappl.c pass1/applinfer/mkappl.icn;;
25) emacs pass1/applinfer/mkappl2.c pass1/applinfer/mkappl2.icn;;
26) emacs pass1/applinfer/outermost_op.c pass1/applinfer/outermost_op.icn;;
27) emacs pass1/applinfer/single_arg.c pass1/applinfer/single_arg.icn;;
28) emacs pass1/applinfer/cand_cond.c pass1/applinfer/cand_cond.icn;;
29) emacs pass1/applinfer/cor_cond.c pass1/applinfer/cor_cond.icn;;
30) emacs sigio/sig_out.c sigio/sig_out.icn ;;
31) emacs sigio/sig_in.c sigio/sig_in.icn ;;
32) emacs pass2/build_symtab.c pass2/build_symtab.icn ;;

110) ./testinit;;
111) ./testfact;;
112) ./testmisc;;
113) ./testsimp0001;;
114) ./testsimp0002;;
123) ./testsimp0011;;
124) ./testsimp0012;;
125) ./testsimp0013;;
888) emacs NOTES.txt ;;

esac
echo "files"
echo "1 main"
echo "2 mine"
echo "3 defs"
echo "4 global_vars"
echo "5 globals_init"
echo "6 initids"
echo "7 stt"
echo "8 ststructs"
echo "9 mknode"
echo "10 listops consnodes - not in unicon"
# echo "11 consnodes"
echo "12 RIC"
echo "13 Compile & Link Russell" 
# echo "13 grammar"
echo "14 edit mm2 - used to complie & link russell"
echo "17 listops.c & ststructs_cls"
echo "18 consnodes.c & ststructs_cls"
# echo "14 errs - grammar"
# echo "15 calc vs grammar"
# echo "16 orig(c) vs grammar"
# echo "17 1st try vs grammar"
# echo "18 u.Makefile"
echo "19 grammar.icn only"
echo "20 scanner"
echo "21 tmp + scanner "
echo "22 precedence "
echo "23 scan + scan inc"
echo "24 mkappl"
echo "25 mkappl2"
echo "26 outermost_op"
echo "27 single_arg"
echo "28 cand_cond"
echo "29 cor_cond"
echo "30 sig_out"
echo "31 sig_in"
echo "32 build_symtab"

echo "110 TEST init"
echo "111 TEST fact"
echo "112 TEST misc"
echo "113 TEST simp0001"
echo "114 TEST simp0002"
echo "123 TEST simp0011"
echo "124 TEST simp0012"
echo "125 TEST simp0013"
echo "888 NOTES.txt"

echo "999 quit"
echo "select"
read select
done
