Added indirection to types in prep for function calls, full passthrough, and the first real hello world
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -11,4 +11,8 @@ fun some_function(): int return 0;
|
||||
fun some_other_function(in: bool): float {
|
||||
return 0.0
|
||||
}
|
||||
fun main(): int {
|
||||
simple_print("Hello World!")
|
||||
return 0
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user