]> git.saurik.com Git - bison.git/blob - examples/calc++/test
Bind examples/calc++ to the package.
[bison.git] / examples / calc++ / test
1 #! /bin/sh
2
3 set +e
4 cat >input <<EOF
5 a := 1
6 b := 2
7 c := 3
8 d := a + b * c
9 d
10 EOF
11
12 ./calc++ input
13 ./calc++ -p input
14
15 cat >input <<EOF
16 a := 1
17 d := a + b * c
18 EOF
19 ./calc++ input
20
21 set -x
22 echo toto
23 cat >input <<EOF
24 toto := 1
25 toto
26 EOF
27 ./calc++ -s input
28
29 rm input