Parsing complete mostly, ordering, resolving, C++ tests

This commit is contained in:
Krzosa Karol
2022-05-12 17:10:24 +02:00
parent feae74b0b9
commit 9d54ed8195
37 changed files with 2748 additions and 5341 deletions

28
resolve.c Normal file
View File

@@ -0,0 +1,28 @@
typedef struct Sym Sym;
typedef enum Sym_Kind{
Sym_Kind_None,
Sym_Kind_Type,
Sym_Kind_Const,
Sym_Kind_Func,
}Sym_Kind;
typedef enum Sym_State{
Sym_State_NotVisited,
Sym_State_Visited,
};
struct Sym{
Sym_Kind kind;
Sym_State state;
AST *ast;
Type *type;
};
global Sym *global_syms;
function void
resolve_test(){
}