aboutsummaryrefslogtreecommitdiffstats
path: root/test1
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2018-03-21 12:29:09 -0400
committerClyne Sullivan <tullivan99@gmail.com>2018-03-21 12:29:09 -0400
commit140a0bbecc144e554c1954f594a9f0d0b2276e9c (patch)
treef2c4d0223b8659e259d5efa0a98f99a4a54264aa /test1
parent28447df15ac80d7dad1f4889d3d61fe7bfe42a12 (diff)
interpreter overhaul, should be better
Diffstat (limited to 'test1')
-rw-r--r--test113
1 files changed, 13 insertions, 0 deletions
diff --git a/test1 b/test1
new file mode 100644
index 0000000..1d8588c
--- /dev/null
+++ b/test1
@@ -0,0 +1,13 @@
+# test1
+# arithmetic tests
+# looking for proper basic function, respect for order of ops,
+# and respect for parentheses
+
+2 + 5
+14 - 9
+3 * 8 + 3
+9 - 3 / 2
+3 * (8 + 3)
+(9 - 3) / 2
+(4 + 5) * ((9 - 1) + 3)
+5 - 3 + 4