Add an integration test to ensure left recursive parsing of math works
authorDavid Kerkeslager <kerkeslager@gmail.com>
Fri, 4 Aug 2017 23:17:25 +0000 (19:17 -0400)
committerDavid Kerkeslager <kerkeslager@gmail.com>
Fri, 4 Aug 2017 23:17:25 +0000 (19:17 -0400)
examples/06_left_recursive_math.fur [new file with mode: 0644]
examples/06_left_recursive_math.fur.output.txt [new file with mode: 0644]

diff --git a/examples/06_left_recursive_math.fur b/examples/06_left_recursive_math.fur
new file mode 100644 (file)
index 0000000..f84c629
--- /dev/null
@@ -0,0 +1,9 @@
+print(2 + 2 + 2 + 2)
+print('\n')
+print(5 - 1 - 1 - 1)
+print('\n')
+print(2 * 2 * 2 * 2)
+print('\n')
+print(12 // 2 // 3 // 2)
+print('\n')
+print(13 % 5 % 2)
diff --git a/examples/06_left_recursive_math.fur.output.txt b/examples/06_left_recursive_math.fur.output.txt
new file mode 100644 (file)
index 0000000..1c26a3f
--- /dev/null
@@ -0,0 +1,5 @@
+8
+2
+16
+1
+1
\ No newline at end of file