forked from xxq250/Nasal-Interpreter
Prepare for running
This commit is contained in:
@@ -50,4 +50,12 @@ nasal_hash::nasal_hash(const nasal_hash& temp)
|
|||||||
elem_name=temp.elem_name;
|
elem_name=temp.elem_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nasal_function::nasal_function()
|
||||||
|
{
|
||||||
|
root.clear();
|
||||||
|
}
|
||||||
|
nasal_function::nasal_function(const nasal_function& temp)
|
||||||
|
{
|
||||||
|
root=temp.root;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+11
-1
@@ -10,7 +10,8 @@ enum var_type
|
|||||||
var_number,
|
var_number,
|
||||||
var_string,
|
var_string,
|
||||||
var_list,
|
var_list,
|
||||||
var_hash
|
var_hash,
|
||||||
|
var_function
|
||||||
};
|
};
|
||||||
|
|
||||||
class nasal_list;
|
class nasal_list;
|
||||||
@@ -46,4 +47,13 @@ class nasal_hash
|
|||||||
nasal_hash(const 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
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user