Added the Float type and many fixes. (0.24.0)
This commit is contained in:
parent
95eba1eb12
commit
41fa946f1c
19 changed files with 432 additions and 69 deletions
4
src/vm.c
4
src/vm.c
|
|
@ -119,6 +119,10 @@ static const char* value_type_name(ValueType t) {
|
|||
switch (t) {
|
||||
case VAL_FUNCTION: return "function";
|
||||
case VAL_INT: return "int";
|
||||
case VAL_FLOAT: return "float";
|
||||
case VAL_BOOL: return "boolean";
|
||||
case VAL_ARRAY: return "array";
|
||||
case VAL_MAP: return "map";
|
||||
case VAL_NIL: return "nil";
|
||||
case VAL_STRING: return "string";
|
||||
default: return "unknown";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue