Trying to add order indendent decls
This commit is contained in:
@@ -298,13 +298,15 @@ compile_string(String filecontent, String filename = "default_name"_s){
|
||||
lex_restream(&ctx, filecontent, filename);
|
||||
Ast_Package *result = parse_file();
|
||||
sym_insert_builtins();
|
||||
pctx->resolving_package = result;
|
||||
|
||||
gen(R"==(//-------------------------------
|
||||
#define NULL_POINTER 0
|
||||
#define NULL_LAMBDA 0
|
||||
//-------------------------------)==");
|
||||
|
||||
eval_decl(result);
|
||||
resolve_package(result);
|
||||
// eval_decl(result);
|
||||
gen_ast(result);
|
||||
exp_destroy(&heap);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user