diff --git a/version1.0/nasal_var.cpp b/version1.0/nasal_var.cpp index 474e839..e2cce7e 100644 --- a/version1.0/nasal_var.cpp +++ b/version1.0/nasal_var.cpp @@ -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 diff --git a/version1.0/nasal_var.h b/version1.0/nasal_var.h index 8239384..3695d39 100644 --- a/version1.0/nasal_var.h +++ b/version1.0/nasal_var.h @@ -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 root; + public: + nasal_function(); + nasal_function(const nasal_function&); +}; + #endif