summaryrefslogtreecommitdiffstats
path: root/samples/eval.sample
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2022-01-29 17:58:41 +0200
committerJan Tuomi <jans.tuomi@gmail.com>2022-01-29 17:58:41 +0200
commitd2c46077f56c3b0a8dd7c34924c3ccb80fed892b (patch)
tree1a11e00bfd96a95e3b7313fa7620f734c70d183d /samples/eval.sample
parent12dbaa90ae2f8c43fd69caaf7d1665ca0182b962 (diff)
Add debug flag, phrase handling words
Diffstat (limited to 'samples/eval.sample')
-rw-r--r--samples/eval.sample14
1 files changed, 14 insertions, 0 deletions
diff --git a/samples/eval.sample b/samples/eval.sample
new file mode 100644
index 0000000..927621b
--- /dev/null
+++ b/samples/eval.sample
@@ -0,0 +1,14 @@
+define update
+ $update_var !
+ $update_phrase !
+ $update_var @ @ $update_phrase @ unphrase
+ $update_var @ !
+ $update_var forget $update_phrase forget
+ ;
+
+10 $num !
+[ 1 + ] $num update
+$num ?
+
+[ 5 / ] $num update
+$num ? \ No newline at end of file