Remove support for ternary comparison operators
authorDavid Kerkeslager <kerkeslager@gmail.com>
Sun, 31 Dec 2017 00:38:35 +0000 (19:38 -0500)
committerDavid Kerkeslager <kerkeslager@gmail.com>
Sun, 31 Dec 2017 01:37:23 +0000 (20:37 -0500)
70 files changed:
examples/13_boolean_operators.fur [new file with mode: 0644]
examples/13_boolean_operators.fur.stdout.txt [new file with mode: 0644]
examples/13_ternary_comparison.fur [deleted file]
examples/13_ternary_comparison.fur.stdout.txt [deleted file]
examples/14_boolean_operators.fur [deleted file]
examples/14_boolean_operators.fur.stdout.txt [deleted file]
examples/14_varargs.fur [new file with mode: 0644]
examples/14_varargs.fur.stdout.txt [new file with mode: 0644]
examples/15_functions.fur [new file with mode: 0644]
examples/15_functions.fur.stdout.txt [new file with mode: 0644]
examples/15_varargs.fur [deleted file]
examples/15_varargs.fur.stdout.txt [deleted file]
examples/16_functions.fur [deleted file]
examples/16_functions.fur.stdout.txt [deleted file]
examples/16_short_circuiting.fur [new file with mode: 0644]
examples/16_short_circuiting.fur.stdout.txt [new file with mode: 0644]
examples/17_comments.fur [new file with mode: 0644]
examples/17_comments.fur.stdout.txt [new file with mode: 0644]
examples/17_short_circuiting.fur [deleted file]
examples/17_short_circuiting.fur.stdout.txt [deleted file]
examples/18_closures.fur [new file with mode: 0644]
examples/18_closures.fur.stdout.txt [new file with mode: 0644]
examples/18_comments.fur [deleted file]
examples/18_comments.fur.stdout.txt [deleted file]
examples/19_closures.fur [deleted file]
examples/19_closures.fur.stdout.txt [deleted file]
examples/19_cycles.fur [new file with mode: 0644]
examples/19_cycles.fur.stdout.txt [new file with mode: 0644]
examples/20_arguments.fur [new file with mode: 0644]
examples/20_arguments.fur.stdout.txt [new file with mode: 0644]
examples/20_cycles.fur [deleted file]
examples/20_cycles.fur.stdout.txt [deleted file]
examples/21_arguments.fur [deleted file]
examples/21_arguments.fur.stdout.txt [deleted file]
examples/21_close_arguments.fur [new file with mode: 0644]
examples/21_close_arguments.fur.stdout.txt [new file with mode: 0644]
examples/22_close_arguments.fur [deleted file]
examples/22_close_arguments.fur.stdout.txt [deleted file]
examples/22_parenthesized_functions.fur [new file with mode: 0644]
examples/22_parenthesized_functions.fur.stdout.txt [new file with mode: 0644]
examples/23_function_calls_for_functions.fur [new file with mode: 0644]
examples/23_function_calls_for_functions.fur.stdout.txt [new file with mode: 0644]
examples/23_parenthesized_functions.fur [deleted file]
examples/23_parenthesized_functions.fur.stdout.txt [deleted file]
examples/24_function_calls_for_functions.fur [deleted file]
examples/24_function_calls_for_functions.fur.stdout.txt [deleted file]
examples/24_if_statements.fur [new file with mode: 0644]
examples/24_if_statements.fur.stdout.txt [new file with mode: 0644]
examples/25_if_statements.fur [deleted file]
examples/25_if_statements.fur.stdout.txt [deleted file]
examples/25_list_literals.fur [new file with mode: 0644]
examples/25_list_literals.fur.stdout.txt [new file with mode: 0644]
examples/26_list_literals.fur [deleted file]
examples/26_list_literals.fur.stdout.txt [deleted file]
examples/26_string_concatenation.fur [new file with mode: 0644]
examples/26_string_concatenation.fur.stdout.txt [new file with mode: 0644]
examples/27_double_quoted_strings.fur [new file with mode: 0644]
examples/27_double_quoted_strings.fur.stdout.txt [new file with mode: 0644]
examples/27_string_concatenation.fur [deleted file]
examples/27_string_concatenation.fur.stdout.txt [deleted file]
examples/28_double_quoted_strings.fur [deleted file]
examples/28_double_quoted_strings.fur.stdout.txt [deleted file]
examples/28_structures.fur [new file with mode: 0644]
examples/28_structures.fur.stdout.txt [new file with mode: 0644]
examples/29_division_by_zero.fur [new file with mode: 0644]
examples/29_division_by_zero.fur.stderr.txt [new file with mode: 0644]
examples/29_structures.fur [deleted file]
examples/29_structures.fur.stdout.txt [deleted file]
examples/30_division_by_zero.fur [deleted file]
examples/30_division_by_zero.fur.stderr.txt [deleted file]

diff --git a/examples/13_boolean_operators.fur b/examples/13_boolean_operators.fur
new file mode 100644 (file)
index 0000000..1b24fb7
--- /dev/null
@@ -0,0 +1,23 @@
+print('false and false: ')
+print(false and false)
+print('\n')
+print('false and true: ')
+print(false and true)
+print('\n')
+print('true and false: ')
+print(true and false)
+print('\n')
+print('true and true: ')
+print(true and true)
+print('\n')
+print('false or false: ')
+print(false or false)
+print('\n')
+print('false or true: ')
+print(false or true)
+print('\n')
+print('true or false: ')
+print(true or false)
+print('\n')
+print('true or true: ')
+print(true or true)
diff --git a/examples/13_boolean_operators.fur.stdout.txt b/examples/13_boolean_operators.fur.stdout.txt
new file mode 100644 (file)
index 0000000..60b33ea
--- /dev/null
@@ -0,0 +1,8 @@
+false and false: false
+false and true: false
+true and false: false
+true and true: true
+false or false: false
+false or true: true
+true or false: true
+true or true: true
\ No newline at end of file
diff --git a/examples/13_ternary_comparison.fur b/examples/13_ternary_comparison.fur
deleted file mode 100644 (file)
index 695873a..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-print('1 < 2 < 2: ')
-print(1 < 2 < 2)
-print('\n')
-print('2 < 2 < 2: ')
-print(2 < 2 < 2)
-print('\n')
-print('1 < 2 < 3: ')
-print(1 < 2 < 3)
-print('\n')
-print('2 < 2 < 3: ')
-print(2 < 2 < 3)
diff --git a/examples/13_ternary_comparison.fur.stdout.txt b/examples/13_ternary_comparison.fur.stdout.txt
deleted file mode 100644 (file)
index 1e6d32f..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-1 < 2 < 2: false
-2 < 2 < 2: false
-1 < 2 < 3: true
-2 < 2 < 3: false
\ No newline at end of file
diff --git a/examples/14_boolean_operators.fur b/examples/14_boolean_operators.fur
deleted file mode 100644 (file)
index 1b24fb7..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-print('false and false: ')
-print(false and false)
-print('\n')
-print('false and true: ')
-print(false and true)
-print('\n')
-print('true and false: ')
-print(true and false)
-print('\n')
-print('true and true: ')
-print(true and true)
-print('\n')
-print('false or false: ')
-print(false or false)
-print('\n')
-print('false or true: ')
-print(false or true)
-print('\n')
-print('true or false: ')
-print(true or false)
-print('\n')
-print('true or true: ')
-print(true or true)
diff --git a/examples/14_boolean_operators.fur.stdout.txt b/examples/14_boolean_operators.fur.stdout.txt
deleted file mode 100644 (file)
index 60b33ea..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-false and false: false
-false and true: false
-true and false: false
-true and true: true
-false or false: false
-false or true: true
-true or false: true
-true or true: true
\ No newline at end of file
diff --git a/examples/14_varargs.fur b/examples/14_varargs.fur
new file mode 100644 (file)
index 0000000..964ecfb
--- /dev/null
@@ -0,0 +1,2 @@
+print('Hello, world\n')
+print(42, '\n')
diff --git a/examples/14_varargs.fur.stdout.txt b/examples/14_varargs.fur.stdout.txt
new file mode 100644 (file)
index 0000000..ac2ea2c
--- /dev/null
@@ -0,0 +1,2 @@
+Hello, world
+42
diff --git a/examples/15_functions.fur b/examples/15_functions.fur
new file mode 100644 (file)
index 0000000..5786384
--- /dev/null
@@ -0,0 +1,5 @@
+def get_answer() do
+  42
+end
+
+print(get_answer())
diff --git a/examples/15_functions.fur.stdout.txt b/examples/15_functions.fur.stdout.txt
new file mode 100644 (file)
index 0000000..f70d7bb
--- /dev/null
@@ -0,0 +1 @@
+42
\ No newline at end of file
diff --git a/examples/15_varargs.fur b/examples/15_varargs.fur
deleted file mode 100644 (file)
index 964ecfb..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-print('Hello, world\n')
-print(42, '\n')
diff --git a/examples/15_varargs.fur.stdout.txt b/examples/15_varargs.fur.stdout.txt
deleted file mode 100644 (file)
index ac2ea2c..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Hello, world
-42
diff --git a/examples/16_functions.fur b/examples/16_functions.fur
deleted file mode 100644 (file)
index 5786384..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-def get_answer() do
-  42
-end
-
-print(get_answer())
diff --git a/examples/16_functions.fur.stdout.txt b/examples/16_functions.fur.stdout.txt
deleted file mode 100644 (file)
index f70d7bb..0000000
+++ /dev/null
@@ -1 +0,0 @@
-42
\ No newline at end of file
diff --git a/examples/16_short_circuiting.fur b/examples/16_short_circuiting.fur
new file mode 100644 (file)
index 0000000..f70e7b9
--- /dev/null
@@ -0,0 +1,24 @@
+def return_zero() do
+  print('This should not print\n')
+  2
+end
+
+def return_one() do
+  print('This should only print once.\n')
+  1
+end
+
+def return_true() do
+  print('This should print exactly twice.\n')
+  true
+end
+
+def return_false() do
+  print('This should print exactly twice.\n')
+  false
+end
+
+0 < return_one() < 2
+0 < 0 < return_zero()
+return_true() or return_true()
+return_false() and return_false()
diff --git a/examples/16_short_circuiting.fur.stdout.txt b/examples/16_short_circuiting.fur.stdout.txt
new file mode 100644 (file)
index 0000000..21ff499
--- /dev/null
@@ -0,0 +1,3 @@
+This should only print once.
+This should print exactly twice.
+This should print exactly twice.
diff --git a/examples/17_comments.fur b/examples/17_comments.fur
new file mode 100644 (file)
index 0000000..bab72ba
--- /dev/null
@@ -0,0 +1,2 @@
+# Furface is a great cat
+print('Hello, world\n')
diff --git a/examples/17_comments.fur.stdout.txt b/examples/17_comments.fur.stdout.txt
new file mode 100644 (file)
index 0000000..a5c1966
--- /dev/null
@@ -0,0 +1 @@
+Hello, world
diff --git a/examples/17_short_circuiting.fur b/examples/17_short_circuiting.fur
deleted file mode 100644 (file)
index f70e7b9..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-def return_zero() do
-  print('This should not print\n')
-  2
-end
-
-def return_one() do
-  print('This should only print once.\n')
-  1
-end
-
-def return_true() do
-  print('This should print exactly twice.\n')
-  true
-end
-
-def return_false() do
-  print('This should print exactly twice.\n')
-  false
-end
-
-0 < return_one() < 2
-0 < 0 < return_zero()
-return_true() or return_true()
-return_false() and return_false()
diff --git a/examples/17_short_circuiting.fur.stdout.txt b/examples/17_short_circuiting.fur.stdout.txt
deleted file mode 100644 (file)
index 21ff499..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-This should only print once.
-This should print exactly twice.
-This should print exactly twice.
diff --git a/examples/18_closures.fur b/examples/18_closures.fur
new file mode 100644 (file)
index 0000000..eb7fd07
--- /dev/null
@@ -0,0 +1,15 @@
+def outer() do
+  hi = 'Hello, world\n'
+
+  def inner() do
+    hi
+  end
+
+  inner
+end
+
+get_greeting = outer()
+
+print(get_greeting())
+    
+
diff --git a/examples/18_closures.fur.stdout.txt b/examples/18_closures.fur.stdout.txt
new file mode 100644 (file)
index 0000000..a5c1966
--- /dev/null
@@ -0,0 +1 @@
+Hello, world
diff --git a/examples/18_comments.fur b/examples/18_comments.fur
deleted file mode 100644 (file)
index bab72ba..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-# Furface is a great cat
-print('Hello, world\n')
diff --git a/examples/18_comments.fur.stdout.txt b/examples/18_comments.fur.stdout.txt
deleted file mode 100644 (file)
index a5c1966..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Hello, world
diff --git a/examples/19_closures.fur b/examples/19_closures.fur
deleted file mode 100644 (file)
index eb7fd07..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-def outer() do
-  hi = 'Hello, world\n'
-
-  def inner() do
-    hi
-  end
-
-  inner
-end
-
-get_greeting = outer()
-
-print(get_greeting())
-    
-
diff --git a/examples/19_closures.fur.stdout.txt b/examples/19_closures.fur.stdout.txt
deleted file mode 100644 (file)
index a5c1966..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Hello, world
diff --git a/examples/19_cycles.fur b/examples/19_cycles.fur
new file mode 100644 (file)
index 0000000..ea5b20c
--- /dev/null
@@ -0,0 +1,30 @@
+# Environment A is created here
+
+# outer references environment A
+def outer() do
+  # Environment B is created here referencing A
+
+  # middle references environment B
+  def middle() do
+    # Environment C is created here referencing B
+
+    # inner references environment C
+    def inner() do
+      # This is never executed
+      42
+    end
+
+    inner
+    # At this point, environment C falls out of scope
+    # However, environment C is still referenced by inner, which is being returned
+  end
+
+  variable = middle()
+  # Now environment B -> variable -> inner -> C -> B
+
+  42
+  # Nothing from the cycle is returned and B falls out of scope
+  # All references are lost, but reference counts are still > 0 because of the cycle
+end
+
+print(outer())
diff --git a/examples/19_cycles.fur.stdout.txt b/examples/19_cycles.fur.stdout.txt
new file mode 100644 (file)
index 0000000..f70d7bb
--- /dev/null
@@ -0,0 +1 @@
+42
\ No newline at end of file
diff --git a/examples/20_arguments.fur b/examples/20_arguments.fur
new file mode 100644 (file)
index 0000000..3321724
--- /dev/null
@@ -0,0 +1,10 @@
+def increment(n) do
+  n + 1
+end
+
+def add(a, b) do
+  a + b
+end
+
+print(increment(41), '\n')
+print(add(40, 2), '\n')
diff --git a/examples/20_arguments.fur.stdout.txt b/examples/20_arguments.fur.stdout.txt
new file mode 100644 (file)
index 0000000..daaac9e
--- /dev/null
@@ -0,0 +1,2 @@
+42
+42
diff --git a/examples/20_cycles.fur b/examples/20_cycles.fur
deleted file mode 100644 (file)
index ea5b20c..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-# Environment A is created here
-
-# outer references environment A
-def outer() do
-  # Environment B is created here referencing A
-
-  # middle references environment B
-  def middle() do
-    # Environment C is created here referencing B
-
-    # inner references environment C
-    def inner() do
-      # This is never executed
-      42
-    end
-
-    inner
-    # At this point, environment C falls out of scope
-    # However, environment C is still referenced by inner, which is being returned
-  end
-
-  variable = middle()
-  # Now environment B -> variable -> inner -> C -> B
-
-  42
-  # Nothing from the cycle is returned and B falls out of scope
-  # All references are lost, but reference counts are still > 0 because of the cycle
-end
-
-print(outer())
diff --git a/examples/20_cycles.fur.stdout.txt b/examples/20_cycles.fur.stdout.txt
deleted file mode 100644 (file)
index f70d7bb..0000000
+++ /dev/null
@@ -1 +0,0 @@
-42
\ No newline at end of file
diff --git a/examples/21_arguments.fur b/examples/21_arguments.fur
deleted file mode 100644 (file)
index 3321724..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-def increment(n) do
-  n + 1
-end
-
-def add(a, b) do
-  a + b
-end
-
-print(increment(41), '\n')
-print(add(40, 2), '\n')
diff --git a/examples/21_arguments.fur.stdout.txt b/examples/21_arguments.fur.stdout.txt
deleted file mode 100644 (file)
index daaac9e..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-42
-42
diff --git a/examples/21_close_arguments.fur b/examples/21_close_arguments.fur
new file mode 100644 (file)
index 0000000..5ceee14
--- /dev/null
@@ -0,0 +1,13 @@
+def make_incrementer(increment_amount) do
+  def result(i) do
+    increment_amount + i
+  end
+
+  result
+end
+
+increment_by_one = make_incrementer(1)
+increment_by_two = make_incrementer(2)
+
+print(increment_by_one(41), '\n')
+print(increment_by_two(40), '\n')
diff --git a/examples/21_close_arguments.fur.stdout.txt b/examples/21_close_arguments.fur.stdout.txt
new file mode 100644 (file)
index 0000000..daaac9e
--- /dev/null
@@ -0,0 +1,2 @@
+42
+42
diff --git a/examples/22_close_arguments.fur b/examples/22_close_arguments.fur
deleted file mode 100644 (file)
index 5ceee14..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-def make_incrementer(increment_amount) do
-  def result(i) do
-    increment_amount + i
-  end
-
-  result
-end
-
-increment_by_one = make_incrementer(1)
-increment_by_two = make_incrementer(2)
-
-print(increment_by_one(41), '\n')
-print(increment_by_two(40), '\n')
diff --git a/examples/22_close_arguments.fur.stdout.txt b/examples/22_close_arguments.fur.stdout.txt
deleted file mode 100644 (file)
index daaac9e..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-42
-42
diff --git a/examples/22_parenthesized_functions.fur b/examples/22_parenthesized_functions.fur
new file mode 100644 (file)
index 0000000..9cf111e
--- /dev/null
@@ -0,0 +1,10 @@
+def make_incrementer(increment_amount) do
+  def result(i) do
+    increment_amount + i
+  end
+
+  result
+end
+
+print((make_incrementer(1))(41), '\n')
+print((make_incrementer(2))(40), '\n')
diff --git a/examples/22_parenthesized_functions.fur.stdout.txt b/examples/22_parenthesized_functions.fur.stdout.txt
new file mode 100644 (file)
index 0000000..daaac9e
--- /dev/null
@@ -0,0 +1,2 @@
+42
+42
diff --git a/examples/23_function_calls_for_functions.fur b/examples/23_function_calls_for_functions.fur
new file mode 100644 (file)
index 0000000..bebadb9
--- /dev/null
@@ -0,0 +1,10 @@
+def make_incrementer(increment_amount) do
+  def result(i) do
+    increment_amount + i
+  end
+
+  result
+end
+
+print(make_incrementer(1)(41), '\n')
+print(make_incrementer(2)(40), '\n')
diff --git a/examples/23_function_calls_for_functions.fur.stdout.txt b/examples/23_function_calls_for_functions.fur.stdout.txt
new file mode 100644 (file)
index 0000000..daaac9e
--- /dev/null
@@ -0,0 +1,2 @@
+42
+42
diff --git a/examples/23_parenthesized_functions.fur b/examples/23_parenthesized_functions.fur
deleted file mode 100644 (file)
index 9cf111e..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-def make_incrementer(increment_amount) do
-  def result(i) do
-    increment_amount + i
-  end
-
-  result
-end
-
-print((make_incrementer(1))(41), '\n')
-print((make_incrementer(2))(40), '\n')
diff --git a/examples/23_parenthesized_functions.fur.stdout.txt b/examples/23_parenthesized_functions.fur.stdout.txt
deleted file mode 100644 (file)
index daaac9e..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-42
-42
diff --git a/examples/24_function_calls_for_functions.fur b/examples/24_function_calls_for_functions.fur
deleted file mode 100644 (file)
index bebadb9..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-def make_incrementer(increment_amount) do
-  def result(i) do
-    increment_amount + i
-  end
-
-  result
-end
-
-print(make_incrementer(1)(41), '\n')
-print(make_incrementer(2)(40), '\n')
diff --git a/examples/24_function_calls_for_functions.fur.stdout.txt b/examples/24_function_calls_for_functions.fur.stdout.txt
deleted file mode 100644 (file)
index daaac9e..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-42
-42
diff --git a/examples/24_if_statements.fur b/examples/24_if_statements.fur
new file mode 100644 (file)
index 0000000..4695cee
--- /dev/null
@@ -0,0 +1,14 @@
+first_greeting = if true do
+  'Hello, world'
+else
+  'Goodnight, moon'
+end
+
+second_greeting = if false do
+  'Hello, world'
+else
+  'Goodnight, moon'
+end
+
+print(first_greeting, '\n')
+print(second_greeting, '\n')
diff --git a/examples/24_if_statements.fur.stdout.txt b/examples/24_if_statements.fur.stdout.txt
new file mode 100644 (file)
index 0000000..f48e806
--- /dev/null
@@ -0,0 +1,2 @@
+Hello, world
+Goodnight, moon
diff --git a/examples/25_if_statements.fur b/examples/25_if_statements.fur
deleted file mode 100644 (file)
index 4695cee..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-first_greeting = if true do
-  'Hello, world'
-else
-  'Goodnight, moon'
-end
-
-second_greeting = if false do
-  'Hello, world'
-else
-  'Goodnight, moon'
-end
-
-print(first_greeting, '\n')
-print(second_greeting, '\n')
diff --git a/examples/25_if_statements.fur.stdout.txt b/examples/25_if_statements.fur.stdout.txt
deleted file mode 100644 (file)
index f48e806..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Hello, world
-Goodnight, moon
diff --git a/examples/25_list_literals.fur b/examples/25_list_literals.fur
new file mode 100644 (file)
index 0000000..4557356
--- /dev/null
@@ -0,0 +1,7 @@
+greetings = [
+  'Hello, world',
+  'Goodnight, moon',
+]
+
+print(greetings[0], '\n')
+print(greetings[1], '\n')
diff --git a/examples/25_list_literals.fur.stdout.txt b/examples/25_list_literals.fur.stdout.txt
new file mode 100644 (file)
index 0000000..f48e806
--- /dev/null
@@ -0,0 +1,2 @@
+Hello, world
+Goodnight, moon
diff --git a/examples/26_list_literals.fur b/examples/26_list_literals.fur
deleted file mode 100644 (file)
index 4557356..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-greetings = [
-  'Hello, world',
-  'Goodnight, moon',
-]
-
-print(greetings[0], '\n')
-print(greetings[1], '\n')
diff --git a/examples/26_list_literals.fur.stdout.txt b/examples/26_list_literals.fur.stdout.txt
deleted file mode 100644 (file)
index f48e806..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Hello, world
-Goodnight, moon
diff --git a/examples/26_string_concatenation.fur b/examples/26_string_concatenation.fur
new file mode 100644 (file)
index 0000000..56bad3c
--- /dev/null
@@ -0,0 +1 @@
+print('Hello' ++ ', ' ++ 'world' ++ '\n')
diff --git a/examples/26_string_concatenation.fur.stdout.txt b/examples/26_string_concatenation.fur.stdout.txt
new file mode 100644 (file)
index 0000000..a5c1966
--- /dev/null
@@ -0,0 +1 @@
+Hello, world
diff --git a/examples/27_double_quoted_strings.fur b/examples/27_double_quoted_strings.fur
new file mode 100644 (file)
index 0000000..811c474
--- /dev/null
@@ -0,0 +1,2 @@
+print("Don't stop me now\n")
+print('"Cogito ergo sum." --Descartes\n')
diff --git a/examples/27_double_quoted_strings.fur.stdout.txt b/examples/27_double_quoted_strings.fur.stdout.txt
new file mode 100644 (file)
index 0000000..f9f104d
--- /dev/null
@@ -0,0 +1,2 @@
+Don't stop me now
+"Cogito ergo sum." --Descartes
diff --git a/examples/27_string_concatenation.fur b/examples/27_string_concatenation.fur
deleted file mode 100644 (file)
index 56bad3c..0000000
+++ /dev/null
@@ -1 +0,0 @@
-print('Hello' ++ ', ' ++ 'world' ++ '\n')
diff --git a/examples/27_string_concatenation.fur.stdout.txt b/examples/27_string_concatenation.fur.stdout.txt
deleted file mode 100644 (file)
index a5c1966..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Hello, world
diff --git a/examples/28_double_quoted_strings.fur b/examples/28_double_quoted_strings.fur
deleted file mode 100644 (file)
index 811c474..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-print("Don't stop me now\n")
-print('"Cogito ergo sum." --Descartes\n')
diff --git a/examples/28_double_quoted_strings.fur.stdout.txt b/examples/28_double_quoted_strings.fur.stdout.txt
deleted file mode 100644 (file)
index f9f104d..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Don't stop me now
-"Cogito ergo sum." --Descartes
diff --git a/examples/28_structures.fur b/examples/28_structures.fur
new file mode 100644 (file)
index 0000000..e8c7103
--- /dev/null
@@ -0,0 +1,7 @@
+expressions = (
+  greeting: 'Hello',
+  farewell: 'Goodbye',
+)
+
+print(expressions.greeting, '\n')
+print(expressions.farewell, '\n')
diff --git a/examples/28_structures.fur.stdout.txt b/examples/28_structures.fur.stdout.txt
new file mode 100644 (file)
index 0000000..c86756d
--- /dev/null
@@ -0,0 +1,2 @@
+Hello
+Goodbye
diff --git a/examples/29_division_by_zero.fur b/examples/29_division_by_zero.fur
new file mode 100644 (file)
index 0000000..7d504cd
--- /dev/null
@@ -0,0 +1,5 @@
+def get_divided_answer() do
+  42 // 0
+end
+
+print(get_divided_answer())
diff --git a/examples/29_division_by_zero.fur.stderr.txt b/examples/29_division_by_zero.fur.stderr.txt
new file mode 100644 (file)
index 0000000..9d45c1d
--- /dev/null
@@ -0,0 +1,3 @@
+DivisionByZeroError on line 2
+       in get_divided_answer
+       in __main__
diff --git a/examples/29_structures.fur b/examples/29_structures.fur
deleted file mode 100644 (file)
index e8c7103..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-expressions = (
-  greeting: 'Hello',
-  farewell: 'Goodbye',
-)
-
-print(expressions.greeting, '\n')
-print(expressions.farewell, '\n')
diff --git a/examples/29_structures.fur.stdout.txt b/examples/29_structures.fur.stdout.txt
deleted file mode 100644 (file)
index c86756d..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Hello
-Goodbye
diff --git a/examples/30_division_by_zero.fur b/examples/30_division_by_zero.fur
deleted file mode 100644 (file)
index 7d504cd..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-def get_divided_answer() do
-  42 // 0
-end
-
-print(get_divided_answer())
diff --git a/examples/30_division_by_zero.fur.stderr.txt b/examples/30_division_by_zero.fur.stderr.txt
deleted file mode 100644 (file)
index 9d45c1d..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-DivisionByZeroError on line 2
-       in get_divided_answer
-       in __main__