From: David Kerkeslager Date: Fri, 4 Aug 2017 23:17:25 +0000 (-0400) Subject: Add an integration test to ensure left recursive parsing of math works X-Git-Url: https://code.kerkeslager.com/?a=commitdiff_plain;h=08c7721c3ab3b3ba8c97b48fad718d2b59d36a0e;p=fur Add an integration test to ensure left recursive parsing of math works --- diff --git a/examples/06_left_recursive_math.fur b/examples/06_left_recursive_math.fur new file mode 100644 index 0000000..f84c629 --- /dev/null +++ b/examples/06_left_recursive_math.fur @@ -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 index 0000000..1c26a3f --- /dev/null +++ b/examples/06_left_recursive_math.fur.output.txt @@ -0,0 +1,5 @@ +8 +2 +16 +1 +1 \ No newline at end of file