Prepare for running

This commit is contained in:
Valk Richard Li 2019-09-25 07:01:05 -05:00 committed by GitHub
parent 36353389f8
commit 7f5c1c2125
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 1 deletions

View File

@ -50,4 +50,12 @@ nasal_hash::nasal_hash(const nasal_hash& temp)
elem_name=temp.elem_name;
}
nasal_function::nasal_function()
{
root.clear();
}
nasal_function::nasal_function(const nasal_function& temp)
{
root=temp.root;
}
#endif

View File

@ -10,7 +10,8 @@ enum var_type
var_number,
var_string,
var_list,
var_hash
var_hash,
var_function
};
class nasal_list;
@ -46,4 +47,13 @@ class nasal_hash
nasal_hash(const nasal_hash&);
};
class nasal_function
{
private:
std::list<ast_tree_node> root;
public:
nasal_function();
nasal_function(const nasal_function&);
};
#endif