Calling main
This commit is contained in:
5
ast.cpp
5
ast.cpp
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user