summaryrefslogtreecommitdiff
path: root/examples/tree.sin
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/tree.sin
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/tree.sin')
-rw-r--r--examples/tree.sin16
1 files changed, 0 insertions, 16 deletions
diff --git a/examples/tree.sin b/examples/tree.sin
deleted file mode 100644
index b11cae9..0000000
--- a/examples/tree.sin
+++ /dev/null
@@ -1,16 +0,0 @@
-[type branch_ [kind val l r]]
-[type leaf_ [kind val]]
-
-[dec == [a b]]
-
-[def branch [v l r]
- [branch_ 0 v l r]]
-
-[def leaf [x]
- [leaf_ 1 x]]
-
-[def is_branch [x]
- [== [branch_.kind x] 0]]
-
-[def is_leaf [x]
- [== [leaf_.kind x] 1]]