echo "files"
echo "1 grammar.orig.c.y"
echo "2 grammar.base.icn"
echo "3 grammar.1st.convert.y"
echo "4 grammar.edit.y (simple manual edit of grammar.orig.c - see comments top)"
echo "5 unicon -o iy iy.icn"
echo "6 unicon -o iy iyind.icn"
echo "7 run iy.icn - produce grammar.new.y"
echo "8 run iyind.icn - indent to grammar.indent.y"
echo "9 iyacc -i grammar.fixed.y"
echo "10 grammar.new.y"
echo "11 grammar.indent.y"
echo "12 grammar.icn"
echo "13 iy.icn"
echo "14 iyind.icn"

echo "15 make russell"
echo "16 edit mm4"
echo "17 emacs fixgram"
echo "18 snobol4 fixgram"
echo "19 emacs pass1/parser/grammar.fixed.icn"

echo "100 whole process"

echo "111 testfact"
echo "999 quit"
echo "select"
read select
while [ $select -ne 999 ]
do 
case $select in
1)  emacs pass1/parser/grammar.orig.c.y;;
2)  emacs pass1/parser/grammar.base.icn;;
3)  emacs pass1/parser/grammar.1st.convert.y;;
4)   emacs NOTES.gmr.edit.txt pass1/parser/grammar.edit.y;;
5)   unicon -o iy iy.icn;;
6)    unicon -o iyind iyind.icn;;
7)   ./iy <pass1/parser/grammar.edit.y >pass1/parser/grammar.new.y;;
8)    ./iyind <pass1/parser/grammar.new.y >pass1/parser/grammar.indent.y;;
9)   iyacc -i pass1/parser/grammar.indent.y;;
10)  emacs pass1/parser/grammar.new.y;;
11)  emacs pass1/parser/grammar.indent.y;;
12) emacs pass1/parser/grammar.icn;;
13)  emacs iy.icn;;
14) emacs iyind.icn;;
15) ./mm3;;
16)  emacs mm4;;
17) emacs fixgram.sno;;
18) snobol4 fixgram.sno <pass1/parser/grammar.icn >pass1/parser/grammar.fixed.icn; 

emacs gram.dbg.txt pass1/parser/grammar.icn;;

19) emacs pass1/parser/grammar.fixed.icn;;

100) unicon -o iy iy.icn;
 unicon -o iyind iyind.icn;
  ./iy <pass1/parser/grammar.edit.y >pass1/parser/grammar.new.y;
  ./iyind <pass1/parser/grammar.new.y >pass1/parser/grammar.indent.y;
  iyacc -i pass1/parser/grammar.indent.y;
  snobol4 fixgram.sno <pass1/parser/grammar.icn >pass1/parser/grammar.fixed.icn;
  ./mm3;
  emacs NOTES.gmr.edit.txt pass1/parser/grammar.edit.y;
  emacs pass1/parser/grammar.fixed.icn pass1/parser/grammar.edit.y;;
111) ./testfact;;

esac

echo "files"
echo "1 grammar.orig.c.y"
echo "2 grammar.base.icn"
echo "3 grammar.1st.convert.y"
echo "4 grammar.edit.y (simple manual edit of grammar.orig.c - see comments top)"
echo "5 unicon -o iy iy.icn"
echo "6 unicon -o iy iyind.icn"
echo "7 run iy.icn - produce grammar.new.y"
echo "8 run iyind.icn - indent to grammar.indent.y"
echo "9 iyacc -i grammar.indent.y"
echo "10 grammar.new.y"
echo "11 grammar.indent.y"
echo "12 grammar.icn"
echo "13 iy.icn"
echo "14 iyind.icn"

echo "15 make russell"
echo "16 edit mm4"
echo "17 emacs fixgram"
echo "18 snobol4 fixgram"
echo "19 emacs pass1/parser/grammar.fixed.icn"

echo "100 whole process"

echo "111 testfact"

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