#! /bin/sh
echo "              GRAMMAR/DICTIONARY COMPILATION"
echo
if test -f $1.txt
then
   gram=$1
else
   echo -n "     >>> Input dictionary [.txt assumed]: "
   read gram
fi
echo "              Compiling " $gram.wdo
GRAMOT="$gram.wdo"
GRAMIN=$CRLS ; export GRAMIN
PARINP="$gram.txt"
export PARINP
export GRAMOT
echo
echo "      Input text of dictionary     " $gram.txt
echo "      Output dictionary            " $gram.wdo
echo "      Compilation listing          " $gram.lis
\rm $gram.lis $gram.wdo $gram.sym
# $CPPPARSER | sed 's/[ ]*$//' > $gram.lis
$PARSER | sed 's/[ ]*$//' > $gram.lis
echo
echo "            --- Compilation completed ---"
