Parsing complete mostly, ordering, resolving, C++ tests
This commit is contained in:
28
resolve.c
Normal file
28
resolve.c
Normal 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(){
|
||||
}
|
||||
Reference in New Issue
Block a user