From dca4bf883e18431598308645772eb4a87a5ade53 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Wed, 16 Dec 2015 19:39:43 +0100 Subject: Some useful additions --- rip-lang.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'rip-lang.txt') 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[code]: define a function named "bla" with the body "code" $: outputs a stackdump whitespace: nop +'c: pushes the ascii value of c +#: literally includes contents of 'file.rip' in-place + Any error causes the interpreter to exit, saying "rip". -- cgit v1.2.3-70-g09d2