aboutsummaryrefslogtreecommitdiff
path: root/std/stdlib.sloth
diff options
context:
space:
mode:
authornic-gaffney <gaffney_nic@protonmail.com>2023-06-25 19:41:03 -0500
committernic-gaffney <gaffney_nic@protonmail.com>2023-06-25 19:41:03 -0500
commit28ab9c8ba094d86dbcb9abb853dddd83dca028cc (patch)
treeb30f3ff0218555270cde4c99c89fa866a4ad324a /std/stdlib.sloth
parentbf647e430e3a3642c8199dc81a411d5e1586cabb (diff)
downloadsloth-28ab9c8ba094d86dbcb9abb853dddd83dca028cc.tar.gz
Standard library updated and llvm-sys added to cargo.toml
Diffstat (limited to 'std/stdlib.sloth')
-rw-r--r--std/stdlib.sloth2
1 files changed, 2 insertions, 0 deletions
diff --git a/std/stdlib.sloth b/std/stdlib.sloth
index 7b6e2f9..36f3879 100644
--- a/std/stdlib.sloth
+++ b/std/stdlib.sloth
@@ -1,5 +1,7 @@
foreign fn wait(x: Int) Void;
foreign fn print(str: String) Void;
+foreign fn len(str: String) Int;
+foreign fn charAt(str: String) Char;
fn termpos(x: int, y: int) Void {
print("\x1b[");