summaryrefslogtreecommitdiff
path: root/examples/fib.int
diff options
context:
space:
mode:
authorTom Harley2020-01-11 19:46:15 +0000
committerTom Harley2020-01-11 19:46:15 +0000
commit9e87372371794bc3e7d46698141966c00acaad0e (patch)
tree068da13d97cefed2e49ab06843e1dd9d97c32f6a /examples/fib.int
parentAdded int width specifiers (diff)
downloadsinter-9e87372371794bc3e7d46698141966c00acaad0e.tar.gz
sinter-9e87372371794bc3e7d46698141966c00acaad0e.zip

Tidying up

  • Removed unused example files
  • Removed redundant common.c
  • Added extra files to make sure the current version compiles the nqueens solution correctly
  • Added extensionless files to .gitignore
  • Added a way to install sinter
Diffstat (limited to 'examples/fib.int')
-rw-r--r--examples/fib.int12
1 files changed, 0 insertions, 12 deletions
diff --git a/examples/fib.int b/examples/fib.int
deleted file mode 100644
index 11736d0..0000000
--- a/examples/fib.int
+++ /dev/null
@@ -1,12 +0,0 @@
-[dec wowow []]
-[type test [(INT x) (INT y)]]
-[def testest [] [test.y [test 3 10]]]
-[def dec [n] [- n 1]]
-[def inc [n] [+ n 1]]
-[def ttt [x y] [test y x]]
-[def ! [b] [if b 0 1]]
-[def != [x y] [- x y]]
-[def == [x y] [! [!= x y]]]
-[def or [a b] [if a 1 b]]
-[def fib [n] [debug_int [if [or [== n 0] [== n 1]] 1 [+ [fib [- n 1]] [fib [- n 2]]]]]]
-[def inter_main [] [fib [test.y [ttt 10 10]]]]