Files
bison/examples/calc++/test
2005-10-10 11:41:27 +00:00

33 lines
298 B
Bash
Executable File

#! /bin/sh
test -z "$VERBOSE" && {
exec > /dev/null 2>&1
}
cat >input <<EOF
a := 1
b := 2
c := 3
d := a + b * c
d
EOF
./calc++ input
./calc++ -p input
cat >input <<EOF
a := 1
d := a + b * c
EOF
./calc++ input
set -x
echo toto
cat >input <<EOF
toto := 1
toto
EOF
./calc++ -s input
rm input