summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2024-12-30 17:48:17 +0400
committerSuleyman Farajli <suleyman@farajli.net>2024-12-30 17:48:17 +0400
commit33e4f335444a1d2992b9ce56f4861bc9ed11adab (patch)
tree34ed53bcb4f17aaf9b306e9436f0757ee3bf1b4f /examples
parent82b8286cc6032c383e37a8390b4baedd0de222c6 (diff)
examples changed to follow new syntax
Diffstat (limited to 'examples')
-rw-r--r--examples/hello_world.gorth1
-rw-r--r--examples/seq10.gorth6
2 files changed, 4 insertions, 3 deletions
diff --git a/examples/hello_world.gorth b/examples/hello_world.gorth
deleted file mode 100644
index 424cfa3..0000000
--- a/examples/hello_world.gorth
+++ /dev/null
@@ -1 +0,0 @@
-pushstr "Hello, World!" println
diff --git a/examples/seq10.gorth b/examples/seq10.gorth
index b37a326..e73743e 100644
--- a/examples/seq10.gorth
+++ b/examples/seq10.gorth
@@ -1,4 +1,6 @@
+# Print out numbers from 1 to 10
+
1 while dup 11 < do
- dup .
+ dup dump
1 +
-endloop
+done