- 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
|
|
@ -338,7 +338,8 @@ static void DoParse(int lumpnum)
|
|||
#endif
|
||||
}
|
||||
|
||||
PSymbolTable symtable(&GlobalSymbols);
|
||||
PSymbolTable symtable;
|
||||
symtable.SetName("Global_Node");
|
||||
ZCCCompiler cc(state, NULL, symtable, GlobalSymbols);
|
||||
cc.Compile();
|
||||
// ... and another one afterward so we can see what the compiler does with the data.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue