This commit is contained in:
Valk Richard Li
2020-02-15 17:02:04 +08:00
committed by GitHub
parent a03d8a440d
commit e169ffc5ee
4 changed files with 51 additions and 22 deletions
+6 -3
View File
@@ -5,6 +5,7 @@ class nasal_runtime
{
private:
sym_hash_map global;
// local hash_map will be used when running
public:
nasal_runtime()
{
@@ -18,14 +19,16 @@ class nasal_runtime
nasal_gc.gc_init();
return;
}
void before_running_init()
void func_proc()
{
global.set_clear();
nasal_gc.gc_init();
return;
}
void main_proc(abstract_syntax_tree& root)
{
// init
global.set_clear();
nasal_gc.gc_init();
return;
}
};