53 fprintf(stderr,
"Runtime type error: MUL expects numbers, got %s and %s\n",
Tagged union representing a Fun value.
void free_value(Value v)
Free dynamic storage owned by a Value.
Value make_float(double v)
Construct a Value representing a double-precision float.
Value make_int(int64_t v)
Construct a Value representing a 64-bit integer.
static Value pop_value(VM *vm)
Pop a Value from the VM operand stack.
static const char * value_type_name(ValueType t)
Get a human-readable name for a ValueType.
static void push_value(VM *vm, Value v)
Push a Value onto the VM operand stack.