- typeOf
- pop
- reverse
- join
- split
- replace
- toLower
- toUpper
- trim
- trimLeft
- trimRight
- contains and if is a string compare the runes
- merge
- findIndex
- lastIndex
- set and remove for hashmap
- for loop
- while loop
- read code from file and execute?
- http client?
- file system access?
do a traditional for loop, the "parameters" should be a let statement, a condition and some expression then the block, at compile time use the jump opcodes that exist
this should be something like this
-
- create a new symbol table
-
- execute the let statement
-
- save this point to jump later on
-
- check the condition and use OpJumpNotTruthy
-
- execute the code in the block
-
- execute the expression
-
- jump to point 3