]> git.saurik.com Git - bison.git/blob - examples/calc++/test
maint: remove obsolete file.
[bison.git] / examples / calc++ / test
1 #! /bin/sh
2
3 test -z "$VERBOSE" && {
4 exec > /dev/null 2>&1
5 set -x
6 }
7
8 cat >input <<EOF
9 a := 1
10 b := 2
11 c := 3
12 d := a + b * c
13 d
14 EOF
15
16 ./calc++ input
17 ./calc++ -p input
18
19 cat >input <<EOF
20 a := 1
21 d := a + b * c
22 EOF
23 ./calc++ input
24
25 cat >input <<EOF
26 toto := 1
27 toto
28 EOF
29 ./calc++ -s input
30
31 rm input