String support

This commit is contained in:
gingerBill
2016-08-05 00:54:05 +01:00
parent 19aea1f198
commit 2aaef48c5c
16 changed files with 737 additions and 246 deletions
+8
View File
@@ -0,0 +1,8 @@
putchar :: proc(c : i32) -> i32 #foreign
print_string :: proc(s : string) {
for i := 0; i < len(s); i++ {
c := cast(i32)s[i];
putchar(c);
}
}