aboutsummaryrefslogtreecommitdiff
path: root/stdlib.rip
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-01-08 22:18:22 +0100
committertomsmeding <tom.smeding@gmail.com>2016-01-08 22:18:22 +0100
commit73725d0f4d1eea724829104b4483aa1585a31afd (patch)
tree40aca60a98516a4ca2a238eb1baa4da3f08cd0b3 /stdlib.rip
parent534cd47f7488d7081d68c641b28a7c30c93643b9 (diff)
meta.rip stub
Diffstat (limited to 'stdlib.rip')
-rw-r--r--stdlib.rip14
1 files changed, 12 insertions, 2 deletions
diff --git a/stdlib.rip b/stdlib.rip
index 56bacc6..7d209b7 100644
--- a/stdlib.rip
+++ b/stdlib.rip
@@ -8,6 +8,16 @@ F<strprint>[
PP
]
+0I[gets last character of string; destructive]
+F<strlast>[
+ 28pM
+]
+
+0I[drops last character of string; destructive]
+F<strinit>[
+ 28pq
+]
+
0I[takes string char; returns string+char]
F<strpush>[
S28pma
@@ -61,8 +71,8 @@ F<varinit>[
0lr 0lr 0lr 0I[guard]
]
-0I[INTERNAL FUNCTION
- hauls variable by name in argument to top of stack; pushes 0 0 if non-existent]
+0I[hauls variable by name in argument to top of stack (result: name value);
+ pushes 0 0 if non-existent]
F<varhaulup>[
00 0I[guard]
lRlR