mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* examples/calc++/Makefile: Remove, replaced by... * examples/calc++/Makefile.am: ... this new file. * examples/calc++/test: Remove input. * examples/calc++/compile: Remove. * examples/Makefile.am: New. * configure.ac, Makefile.am: Adjust. * doc/Makefile.am (clean-local): New, for more recent texi2dvis.
30 lines
253 B
Bash
Executable File
30 lines
253 B
Bash
Executable File
#! /bin/sh
|
|
|
|
set +e
|
|
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
|