We have a VERY SILL KRAKEN COMPILER\! simple_passthroughs are now emitted by the c_generator and test_compiler has been extended to write the C to a file and then call cc on it, so the self-hosted Kraken compiler can compile its very first thing\! (though that thing is a hello world C program written entirely in a simple_passthrough...
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
|
||||
__if_comp__ __C__ simple_passthrough """
|
||||
#include <stdio.h>
|
||||
int main() {
|
||||
printf("hello world! (of selfhosting! (silly selfhosting for now))\n");
|
||||
return 0;
|
||||
}
|
||||
"""
|
||||
var a = 1
|
||||
var b = 2
|
||||
|
||||
Reference in New Issue
Block a user