version 1.1.1.1, 1999/09/28 21:26:20
|
version 1.4, 2000/02/09 22:10:24
|
Line 6 TEST_DIR=testing7
|
Line 6 TEST_DIR=testing7
|
CC="cc" # -DDMALLOC -DDMALLOC_FUNC_CHECK" |
CC="cc" # -DDMALLOC -DDMALLOC_FUNC_CHECK" |
|
|
#FLEX="/usr/user1/capadvt/BIN/flex -Cfa -s" |
#FLEX="/usr/user1/capadvt/BIN/flex -Cfa -s" |
FLEX="flex -Cfa -s" |
#FLEX="flex -Cfa -s" |
|
FLEX="/usr/user1/capadvt/BIN/flex -Cfa -s" |
#YACC="/usr/bin/byacc" |
#YACC="/usr/bin/byacc" |
YACC="/usr/bin/yacc" |
YACC="/usr/user1/capadvt/BIN/bison" |
MV="mv" |
MV="mv" |
|
|
|
|
Line 69 fi
|
Line 70 fi
|
# echo "ONE: $1" |
# echo "ONE: $1" |
# echo "TWO: $2" |
# echo "TWO: $2" |
|
|
|
compileUnits() |
|
{ |
|
|
|
ofile="${ARCH}/capaUnit.o" |
|
cfile="capaUnit.c" |
|
cmd="${CC} $CCFLAG -c $cfile -o $ofile" |
|
echo $cmd |
|
$cmd |
|
} |
|
|
lexCAPA() |
lexCAPA() |
{ |
{ |
echo "${FLEX} capaLexerDef.flex" |
echo "${FLEX} capaLexerDef.flex" |
Line 123 yaccCAPA()
|
Line 134 yaccCAPA()
|
# -ocapaParserFun.c" |
# -ocapaParserFun.c" |
# |
# |
${YACC} -d capaGrammarDef.y |
${YACC} -d capaGrammarDef.y |
echo "mv y.tab.c capaParserFun.c" |
# mv y.tab.c capaParserFun.c |
mv y.tab.c capaParserFun.c |
echo "mv capaGrammarDef.tab.c capaParserFun.c" |
|
mv capaGrammarDef.tab.c capaParserFun.c |
|
|
ofile="${ARCH}/capaParserFun.o" |
ofile="${ARCH}/capaParserFun.o" |
cfile="capaParserFun.c" |
cfile="capaParserFun.c" |
Line 174 yaccCAPAdbug()
|
Line 186 yaccCAPAdbug()
|
formulaParser() |
formulaParser() |
{ |
{ |
|
|
echo "YACC -p fml_ -d capaFormula.y" |
echo "${YACC} -p fml_ -d capaFormula.y" |
${YACC} -b fma -p fml_ -d capaFormula.y |
${YACC} -b fma -p fml_ -d capaFormula.y |
|
|
echo "MV fma.tab.c capaFormulaParser.c" |
echo "MV fma.tab.c capaFormulaParser.c" |
Line 421 for i in $* ; do
|
Line 433 for i in $* ; do
|
lexCAPAdmalloc |
lexCAPAdmalloc |
;; |
;; |
*L) |
*L) |
## lexCAPA |
lexCAPA |
## createCAPAlib |
## createCAPAlib |
;; |
;; |
*X) |
*X) |
Line 429 for i in $* ; do
|
Line 441 for i in $* ; do
|
## createCAPAlib |
## createCAPAlib |
;; |
;; |
*P) |
*P) |
## yaccCAPAdbug |
yaccCAPAdbug |
## createCAPAlib |
createCAPAlib |
;; |
;; |
*YD) |
*YD) |
|
echo "Hi There" |
yaccCAPAdmalloc |
yaccCAPAdmalloc |
;; |
;; |
*Y) |
*Y) |
Line 483 for i in $* ; do
|
Line 496 for i in $* ; do
|
*F|*f) |
*F|*f) |
compileFormulaTest |
compileFormulaTest |
;; |
;; |
|
*U|*u) |
|
compileUnits |
|
;; |
|
*lib|*Lib) |
|
createCAPAlib |
|
;; |
esac |
esac |
done |
done |
|
|
|
|
echo " " |
echo " " |
exit 0 |
exit 0 |
|
|