35 Value text = pop_value(vm);
42 struct json_tokener *tok = json_tokener_new();
43 json_object *root = json_tokener_parse_ex(tok,
s, (
int)strlen(
s));
44 enum json_tokener_error jerr = json_tokener_get_error(tok);
45 json_tokener_free(tok);
47 if (jerr != json_tokener_success) {
50 Value v = json_to_fun(root);
52 json_object_put(root);
56 Value drop = pop_value(vm);
push_value(vm, make_nil())
Tagged union representing a Fun value.
Value make_nil(void)
Construct a nil Value.
char * value_to_string_alloc(const Value *v)
Allocate a printable C string for a Value.