- implemented complete resolving of constants - both global and class-local.
This uses a different algorithm as the old implementation - instead of recursively resolving unknown symbols it will first collect all constants from all scopes and then process them in one operation, doing multiple passes over the list until no more constants can be resolved anymore.
This commit is contained in:
parent
5bb6bb31ca
commit
08f313d011
9 changed files with 238 additions and 122 deletions
|
|
@ -188,12 +188,14 @@ struct ZCC_Class : ZCC_NamedNode
|
|||
VM_UWORD Flags;
|
||||
ZCC_TreeNode *Body;
|
||||
PClass *Type;
|
||||
PSymbolType *Symbol;
|
||||
};
|
||||
|
||||
struct ZCC_Struct : ZCC_NamedNode
|
||||
{
|
||||
ZCC_TreeNode *Body;
|
||||
PStruct *Type;
|
||||
PSymbolType *Symbol;
|
||||
};
|
||||
|
||||
struct ZCC_Enum : ZCC_NamedNode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue