Complete rework, adding packages
This commit is contained in:
16
main.cpp
16
main.cpp
@@ -164,10 +164,10 @@ Expr:
|
||||
#include "parsing.cpp"
|
||||
#include "typechecking.h"
|
||||
#include "typechecking.cpp"
|
||||
#include "ccodegen.cpp"
|
||||
// #include "ccodegen.cpp"
|
||||
#include "tests.cpp"
|
||||
|
||||
int main(int argument_count, char **arguments){
|
||||
// test_big_int();
|
||||
|
||||
test_os_memory();
|
||||
thread_ctx_init();
|
||||
@@ -180,7 +180,7 @@ int main(int argument_count, char **arguments){
|
||||
test_intern_table();
|
||||
|
||||
|
||||
|
||||
#if 0
|
||||
emit_line_directives = true;
|
||||
if(argument_count > 1){
|
||||
Scratch scratch;
|
||||
@@ -211,12 +211,16 @@ int main(int argument_count, char **arguments){
|
||||
printf("%s", result.str);
|
||||
result = compile_file("order2.kl"_s);
|
||||
printf("%s", result.str);
|
||||
result = compile_file("lambdas.kl"_s);
|
||||
printf("%s", result.str);
|
||||
|
||||
result = compile_file("new_types.kl"_s);
|
||||
printf("%s", result.str);
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
Scratch scratch;
|
||||
Array<String> files = {scratch};
|
||||
files.add("lambdas.kl"_s);
|
||||
files.add("order1.kl"_s);
|
||||
compile_files(files);
|
||||
__debugbreak();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user