|
Reduct
v1.0.4-3-gdaf0d70
A functional and immutable language.
|
Virtual machine evaluation. More...
Go to the source code of this file.
Data Structures | |
| struct | reduct_eval_frame_t |
| Evaluation frame structure. More... | |
| struct | reduct_eval_state_t |
| Evaluation state structure. More... | |
Macros | |
| #define | REDUCT_EVAL_REGS_INITIAL 64 |
| The initial amount of registers. | |
| #define | REDUCT_EVAL_REGS_GROWTH_FACTOR 2 |
| The growth factor of the registers array. | |
| #define | REDUCT_EVAL_FRAMES_INITIAL 32 |
| The initial size of the frames array. | |
| #define | REDUCT_EVAL_FRAMES_GROWTH_FACTOR 2 |
| The growth factor of the frames array. | |
Functions | |
| REDUCT_API void | reduct_eval_state_deinit (reduct_eval_state_t *state) |
| Deinitialize an evaluation state structure. | |
| REDUCT_API reduct_handle_t | reduct_eval (reduct_t *reduct, reduct_function_t *function) |
| Evaluates a compiled Reduct function. | |
| REDUCT_API reduct_handle_t | reduct_eval_file (reduct_t *reduct, const char *path) |
| Parses, compiles and evaluates a file. | |
| REDUCT_API reduct_handle_t | reduct_eval_string (reduct_t *reduct, const char *str, reduct_size_t len) |
| Parses, compiles and evaluates a string. | |
| REDUCT_API reduct_handle_t | reduct_eval_call (reduct_t *reduct, reduct_handle_t callable, reduct_size_t argc, reduct_handle_t *argv) |
| Calls a Reduct callable (closure or native) with arguments. | |
Virtual machine evaluation.
Definition in file eval.h.