Files
corelang/main.cpp
2022-05-27 12:29:51 +02:00

39 lines
793 B
C++

#include "base.cpp"
#include "base_unicode.cpp"
#include "new_lex.cpp"
#include "new_ast.cpp"
#include "new_parse.cpp"
#include "new_type.cpp"
#include "new_resolve.cpp"
#include "cgenerate.cpp"
/// @todo
/// [ ] - Typespecs should probably be expressions so stuff like would be possible :: *[32]int
/*
thing1 :: *int // type
thing2 :: *get_value // value from pointer
*/
int main(){
test_os_memory();
thread_ctx_init();
test_unicode();
test_types();
map_test();
test_array();
test_string_builder();
test_intern_table();
lex_test();
// String result = compile_file("lambdas.kl"_s);
String result = compile_file("order_independent_globals.kl"_s);
printf("%s", result.str);
// compile_file("lambdas.kl"_s);
// compile_file("globals.kl"_s);
__debugbreak();
}