Added typeof opcode to verify variable types.
This commit is contained in:
parent
d7843274ee
commit
7e9f24114e
6 changed files with 78 additions and 1 deletions
2
src/vm.h
2
src/vm.h
|
|
@ -35,7 +35,7 @@ static const char *opcode_names[] = {
|
|||
"MOD","AND","OR","NOT","DUP","SWAP",
|
||||
"MAKE_ARRAY","INDEX_GET","INDEX_SET",
|
||||
"LEN","ARR_PUSH","ARR_POP","ARR_SET","ARR_INSERT","ARR_REMOVE","SLICE",
|
||||
"TO_NUMBER","TO_STRING",
|
||||
"TO_NUMBER","TO_STRING","TYPEOF",
|
||||
"SPLIT","JOIN","SUBSTR","FIND",
|
||||
"CONTAINS","INDEX_OF","CLEAR",
|
||||
"ENUMERATE","ZIP",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue