]> git.saurik.com Git - bison.git/blobdiff - examples/calc++/test
Start a set of simple examples.
[bison.git] / examples / calc++ / test
diff --git a/examples/calc++/test b/examples/calc++/test
new file mode 100755 (executable)
index 0000000..b4f0d25
--- /dev/null
@@ -0,0 +1,26 @@
+#! /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