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