aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDrahflow <drahflow@gmx.de>2017-05-31 16:49:56 +0200
committerDrahflow <drahflow@gmx.de>2017-05-31 16:49:56 +0200
commit061dd644cbd2fdddbb2e52dbe63683fa7a04b769 (patch)
treea69a50adf0b81e6878ddbcae30eef3ea6215b7e4 /examples
parent1fea64441786cb2affc755260c08c364ab483a4c (diff)
Implemented |=
Diffstat (limited to 'examples')
-rw-r--r--examples/working-compiler/apply.test18
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/working-compiler/apply.test b/examples/working-compiler/apply.test
new file mode 100644
index 0000000..4dd3979
--- /dev/null
+++ b/examples/working-compiler/apply.test
@@ -0,0 +1,18 @@
+{
+ quoted { ==name =*f
+ name "|" sys .executeIdentifier
+ f
+ name "=" sys .executeIdentifier
+ } { ==name =*f name | f name = } ? *
+} "|=" defq
+
+0 ==i
+i dump
+{ 1 add } |=i
+i dump
+
+{
+ 0 ==j
+ { 1 add } |=j
+ j dump
+} *