aboutsummaryrefslogtreecommitdiff
path: root/rip-lang.txt
diff options
context:
space:
mode:
authortomsmeding <hallo@tomsmeding.nl>2015-12-16 19:39:43 +0100
committertomsmeding <hallo@tomsmeding.nl>2015-12-16 19:39:43 +0100
commitdca4bf883e18431598308645772eb4a87a5ade53 (patch)
tree612a6294a9fefbdf8cdf906486b8bff0eaa5a3e8 /rip-lang.txt
parent34a4ab54f7f1e58396a636d322c2a674c04e2344 (diff)
Some useful additions
Diffstat (limited to 'rip-lang.txt')
-rw-r--r--rip-lang.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/rip-lang.txt b/rip-lang.txt
index 9c08942..2ddc1ed 100644
--- a/rip-lang.txt
+++ b/rip-lang.txt
@@ -12,7 +12,7 @@ d: decrement
r: pops the number of items to rotate anti-clockwise
R: pops the number of items to rotate clockwise
l: push length of stack (before this push)
-a s m q: + - * / (add, subtract, multiply, quotient (integer))
+a s m q M p: + - * / % ^ (add, subtract, multiply, quotient (integer), modulo, power)
G L E: greater, less, equal; booleans are 1 and 0, as you expect
n: not; equivalent to 0E
[ ... ]: syntactical; a codeblock
@@ -26,6 +26,9 @@ F<bla>[code]: define a function named "bla" with the body "code"
$: outputs a stackdump
whitespace: nop
+'c: pushes the ascii value of c
+#<file.rip>: literally includes contents of 'file.rip' in-place
+
Any error causes the interpreter to exit, saying "rip".