Added indirection to types in prep for function calls, full passthrough, and the first real hello world

This commit is contained in:
Nathan Braswell
2016-01-10 18:26:31 -05:00
parent 7f20a42178
commit 5db0365a63
7 changed files with 82 additions and 45 deletions

View File

@@ -1,11 +1,9 @@
__if_comp__ __C__ simple_passthrough """
#include <stdio.h>
int main() {
printf("hello world! (of selfhosting! (silly selfhosting for now))\n");
return 0;
}
"""
fun simple_print(to_print: *char) {
__if_comp__ __C__ simple_passthrough(to_print::) """
printf("%s", to_print);
"""
}
var a = 1
var b = 2