mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
32 lines
291 B
Bash
Executable File
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
|