Files
bison/examples/calc++/test
2005-10-14 06:10:54 +00:00

32 lines
291 B
Bash
Executable File

#! /bin/sh
test -z "$VERBOSE" && {
exec > /dev/null 2>&1
set -x
}
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
cat >input <<EOF
toto := 1
toto
EOF
./calc++ -s input
rm input