aboutsummaryrefslogtreecommitdiff
path: root/rip-lang.txt
diff options
context:
space:
mode:
authortomsmeding <hallo@tomsmeding.nl>2015-09-16 21:36:31 +0200
committertomsmeding <hallo@tomsmeding.nl>2015-09-16 21:36:31 +0200
commitcc1e9cdb77a92a03487dd6f80b002121e481f064 (patch)
tree068775c9ed31927d554476fb941e1e9f61a020d4 /rip-lang.txt
parentc3dd37edff188675d38f0c48dbf295fe4c587344 (diff)
Add functions
Sorry for the de-patterning of parenpairs. I hate the resulting function, but ghc didn't like my generalisation of the open and closing paren. It claimed that there were overlapping patterns, which there were, but it should've just evaluated them in order ... Just like it does with guards. So I went with those guards.
Diffstat (limited to 'rip-lang.txt')
-rw-r--r--rip-lang.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/rip-lang.txt b/rip-lang.txt
index 52de72c..75ed5bf 100644
--- a/rip-lang.txt
+++ b/rip-lang.txt
@@ -20,6 +20,8 @@ W: I, but then "while" instead of "if"
o: outputs the top value as an ascii char
O: outputs the top value as a number
g: gets a character and pushes the ascii value
+F<bla>[code]: define a function named "bla" with the body "code"
+<bla>: call the function named "bla"
$: outputs a stackdump
whitespace: nop