aboutsummaryrefslogtreecommitdiff
path: root/std/stdio.sloth
diff options
context:
space:
mode:
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");
+}
+
+