More module work

This commit is contained in:
Krzosa Karol
2022-06-13 12:01:28 +02:00
parent b0553c38cf
commit 8bd5e9638f
9 changed files with 127 additions and 122 deletions

View File

@@ -182,12 +182,18 @@ int main(int argument_count, char **arguments){
// files.add("Windows.kl"_s);
// files.add("euler.kl"_s);
// String result = compile_files(files);
F64 total_time = os_time();
begin_compilation();
Ast_Module *module = parse_module("Windows.kl"_s);
assert(module);
resolve_everything_in_module(module);
String result = end_compilation();
printf("%s", result.str);
printf("\nTotal time = %f", os_time() - total_time);
printf("\nTotal parsing = %f", parsing_time_end - parsing_time_begin);
printf("\nTotal resolving = %f", resolving_time_end - resolving_time_begin);
printf("\nTotal generatin = %f", generating_time_end - generating_time_begin);
#endif
__debugbreak();
}