34 int pairs = inst.operand;
36 fprintf(stderr,
"MAKE_MAP invalid pair count\n");
40 for (
int i = 0; i < pairs; ++i) {
44 fprintf(stderr,
"Map literal keys must be strings\n");
48 fprintf(stderr,
"Map literal set failed\n");
int map_set(Value *vm, const char *key, Value v)
Insert or replace a key in the map.
Value make_map_empty(void)
Construct a new empty map Value.
Tagged union representing a Fun value.
void free_value(Value v)
Free dynamic storage owned by a Value.
static Value pop_value(VM *vm)
Pop a Value from the VM operand stack.