![]() | Fun 0.41.5 The programming language that makes You have fun |
VM opcode snippet for parsing a JSON string into a Fun Value. More...
Go to the source code of this file.
Functions | |
| free_value (drop) | |
| push_value (vm, make_nil()) | |
Variables | |
| case | OP_JSON_PARSE |
| break | |
VM opcode snippet for parsing a JSON string into a Fun Value.
Implements the OP_JSON_PARSE instruction. Expects a string (or any value convertible to string) on the stack, parses it with json-c, converts the resulting json_object to a Fun Value and pushes it.
Build gating: compiled only when FUN_WITH_JSON is enabled. Otherwise the opcode consumes its argument and pushes Nil.
Stack effect (with FUN_WITH_JSON):
Errors and edge cases:
Definition in file parse.c.
| free_value | ( | drop | ) |
| push_value | ( | vm | , |
| make_nil() | ) |