Calling main

This commit is contained in:
Krzosa Karol
2022-06-23 12:09:23 +02:00
parent bcfd586552
commit d33a18c8fe
6 changed files with 107 additions and 50 deletions

View File

@@ -63,6 +63,7 @@ enum{
AST_DECL = bit_flag(9),
AST_GLOBAL = bit_flag(10),
AST_FLAG = bit_flag(11),
AST_VAR_IS_CONST = bit_flag(12),
};
struct Ast{
@@ -255,11 +256,15 @@ enum Ast_Decl_State{
DECL_RESOLVING,
};
typedef S32 Register_Index;
struct Ast_Decl: Ast{
Ast_Decl_State state;
Intern_String name;
// Bytecode
void *bytecode_data_position;
Register_Index register_index;
Ast_Scope *scope;
Ast_Expr *typespec;