xo-interpreter2 stack: + dict type + pop more pm types
This commit is contained in:
parent
60a34aec87
commit
bc4f80e29b
3 changed files with 41 additions and 6 deletions
|
|
@ -28,7 +28,9 @@ namespace xo {
|
|||
case code::t_array: return "array";
|
||||
case code::t_function: return "function";
|
||||
case code::t_struct: return "struct";
|
||||
case code::t_dict: return "dict";
|
||||
|
||||
case code::t_integer: return "integer";
|
||||
case code::t_numeric: return "numeric";
|
||||
case code::t_any: return "any";
|
||||
}
|
||||
|
|
@ -68,7 +70,11 @@ namespace xo {
|
|||
return false;
|
||||
case code::t_struct:
|
||||
return false;
|
||||
case code::t_dict:
|
||||
return true;
|
||||
|
||||
case code::t_integer:
|
||||
return true;
|
||||
case code::t_numeric:
|
||||
return true;
|
||||
case code::t_any:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue