1
0
Fork 0
forked from fun/fun

Added new opcode OP_ENV to provide an env() function to get environment variables from your OS.

This commit is contained in:
Johannes Findeisen 2025-09-27 10:06:04 +02:00
commit 4345fc6f0c
6 changed files with 47 additions and 3 deletions

View file

@ -110,7 +110,10 @@ typedef enum {
// file I/O
OP_READ_FILE, // pops path string; pushes content string (or "")
OP_WRITE_FILE // pops data string, path string; pushes 1/0
OP_WRITE_FILE, // pops data string, path string; pushes 1/0
// OS
OP_ENV // pops name string; pushes value string (or "")
} OpCode;
typedef struct {