Add notes

This commit is contained in:
Valk Richard Li
2019-11-14 19:29:43 +08:00
committed by GitHub
parent 763af6e7aa
commit c421f726fa
9 changed files with 177 additions and 78 deletions
-27
View File
@@ -1,33 +1,6 @@
#ifndef __BALLOON_VAR_H__
#define __BALLOON_VAR_H__
enum var_type
{
__null_type,
__var_number,
__var_string,
__var_array,
__var_hash,
__var_function
};
void print_scalar(int type)
{
std::string str="";
switch(type)
{
case __null_type: str="null";break;
case __var_number: str="number";break;
case __var_string: str="string";break;
case __var_array: str="array";break;
case __var_hash: str="hash";break;
case __var_function:str="function";break;
default: str="unknown";break;
}
std::cout<<str;
return;
}
class var
{
private: