StatementExecutor* StatementExecutor_Create(void) { StatementExecutor* self = malloc(sizeof(StatementExecutor)); memset(self, 0, sizeof(StatementExecutor)); self->symbolTable = SymbolTable_Create(); return self; }
void Smile_ResetEnvironment(void) { // Make a symbol table for this environment. Smile_SymbolTable = SymbolTable_Create(); // Preload the known symbols into this environment. KnownSymbols_PreloadSymbolTable(Smile_SymbolTable, &Smile_KnownSymbols); // Preload the known strings into this environment. KnownStrings_Preload(&Smile_KnownStrings); // Preload the known objects into this environment. KnownObjects_Preload(&Smile_KnownObjects, &Smile_KnownSymbols); // Preload the known bases into this environment. KnownBases_Preload(&Smile_KnownBases, Smile_KnownObjects.Object); }