aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2015-11-07 12:47:43 -0500
committerFranklin Wei <git@fwei.tk>2015-11-07 12:47:43 -0500
commitebecf80830fc88d537436e5c74f3328256f0170a (patch)
tree5bb597a5c62ed2f63c14ea25c4d04927d162fa16 /examples
downloadducky-ebecf80830fc88d537436e5c74f3328256f0170a.zip
ducky-ebecf80830fc88d537436e5c74f3328256f0170a.tar.gz
ducky-ebecf80830fc88d537436e5c74f3328256f0170a.tar.bz2
ducky-ebecf80830fc88d537436e5c74f3328256f0170a.tar.xz
initial commit
Diffstat (limited to 'examples')
-rw-r--r--examples/fibonacci.ds10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/fibonacci.ds b/examples/fibonacci.ds
new file mode 100644
index 0000000..b71b23c
--- /dev/null
+++ b/examples/fibonacci.ds
@@ -0,0 +1,10 @@
+LET a = 0
+LET b = 1
+LET count = 0
+LBL loop
+LET c = a+b
+LOGVAR a
+LET a = b
+LET b = c
+INC count IF count < 20; GOTO loop
+EXIT