WOOO compiles all in one file! Dependencies resolved! Next up, C name mangeling for scoping

This commit is contained in:
Nathan Braswell
2015-03-11 01:58:10 -04:00
parent 9e9b4371da
commit 6a311fb237
14 changed files with 230 additions and 133 deletions

View File

@@ -1,3 +1,5 @@
import string:*;
__if_comp__ __C__ __simple_passthrough__ """
#include <stdio.h>
"""
@@ -20,6 +22,14 @@ __if_comp__ __C__ __simple_passthrough__ """
println();
}
|void| print(|string| toPrint) {
print(toPrint.toCharArray());
}
|void| println(|string| toPrint) {
println(toPrint.toCharArray());
}
|void| print(|int| toPrint) {
__if_comp__ __C__ {
__simple_passthrough__ """