aboutsummaryrefslogtreecommitdiff
path: root/std/stdio.sloth
diff options
context:
space:
mode:
authorCody <cody@codyq.dev>2023-06-25 23:23:36 -0500
committerCody <cody@codyq.dev>2023-06-25 23:23:36 -0500
commit91ac969f992521b665bb41c1c024a5f69ca6df67 (patch)
tree8562a40e5be385bb7d7f4a69d0840fc8493c71d9 /std/stdio.sloth
parentae4c1af949c7230c07b2a7cc86a2e4031c37f651 (diff)
parentc3bb1751d7f62a13a46f28c1eb67d9e20d8d6f7f (diff)
downloadsloth-91ac969f992521b665bb41c1c024a5f69ca6df67.tar.gz
Merge branch 'master' of github.com:slothlang/sloth
Diffstat (limited to 'std/stdio.sloth')
-rw-r--r--std/stdio.sloth9
1 files changed, 9 insertions, 0 deletions
diff --git a/std/stdio.sloth b/std/stdio.sloth
new file mode 100644
index 0000000..c28d474
--- /dev/null
+++ b/std/stdio.sloth
@@ -0,0 +1,9 @@
+foreign fn print(str: String) Void;
+foreign fn readln() String;
+
+fn println(str: String) Void {
+ print(str);
+ print("\n");
+}
+
+