aboutsummaryrefslogtreecommitdiff
path: root/examples/working
diff options
context:
space:
mode:
authorDrahflow <drahflow@gmx.de>2012-12-08 16:55:18 +0100
committerDrahflow <drahflow@gmx.de>2012-12-08 16:55:18 +0100
commit651f0712cc1349ae152ee6a93302f22c25f89b43 (patch)
tree19afe87498708ae0bfc9e86e34ed551d1a0894a9 /examples/working
parent74f3f1354afe9b6fe866527a1de2a8d16d1210b8 (diff)
Minimal IO possibilities
Diffstat (limited to 'examples/working')
-rw-r--r--examples/working/io.ey16
-rw-r--r--examples/working/scope.ey7
2 files changed, 23 insertions, 0 deletions
diff --git a/examples/working/io.ey b/examples/working/io.ey
new file mode 100644
index 0000000..51de912
--- /dev/null
+++ b/examples/working/io.ey
@@ -0,0 +1,16 @@
+# ## variant 0
+#
+# < sys .file with
+# "io.ey" RO open
+# 512 read
+# close
+# > -
+
+## variant 1
+
+sys .file /f defv
+"io.ey" f .open
+512 f .read
+f .close
+
+sys .out .writeall
diff --git a/examples/working/scope.ey b/examples/working/scope.ey
index adf7725..b3d57dc 100644
--- a/examples/working/scope.ey
+++ b/examples/working/scope.ey
@@ -9,3 +9,10 @@
_00 .a dump
.b dump
.c
+
+< <
+ "closure" /x defv
+ { x }
+> - /get deff >
+
+.get dump