1
0
Fork 0
forked from fun/fun

Added typeof opcode to verify variable types.

This commit is contained in:
Johannes Findeisen 2025-09-16 03:45:25 +02:00
commit 7e9f24114e
6 changed files with 78 additions and 1 deletions

View file

@ -72,6 +72,7 @@ typedef enum {
// conversions
OP_TO_NUMBER, // pops any; pushes int (parse strings)
OP_TO_STRING, // pops any; pushes string
OP_TYPEOF, // pops any; pushes string name of type
// string ops
OP_SPLIT, // pops sep, string; pushes array of strings