summaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-01-27 17:12:04 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-01-27 17:12:04 -0500
commitc4c91e3444c4a530761f900d4f7268801e5cc55d (patch)
treef727df26a63cfdc796930520a9a964e57b3b9f99 /std
parent3467f27c4c0d44f5bb2a09d93a96c71a4c0eeccc (diff)
started nested packages
Diffstat (limited to 'std')
-rw-r--r--std/io.toc8
1 files changed, 8 insertions, 0 deletions
diff --git a/std/io.toc b/std/io.toc
index 147834f..e9d73d6 100644
--- a/std/io.toc
+++ b/std/io.toc
@@ -33,4 +33,12 @@ stdout_fwrite ::= fn(data: &u8, size: u64, nmemb: u64) {
#export puts ::= fn(x: []char) {
stdout_fwrite(&x[0] as &u8, 1, x.len as u64);
toc_putchar('\n');
+};
+
+arr ::= pkg "arr";
+
+#export puts_arr ::= fn(x: arr.Arr([]char)) {
+ for s := x.data {
+ puts(s);
+ }
}; \ No newline at end of file