|
Reduct
v1.0.4-3-gdaf0d70
A functional and immutable language.
|
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. | |
| #define REDUCT_EVAL_REGS_INITIAL 64 |
| #define REDUCT_EVAL_REGS_GROWTH_FACTOR 2 |
| #define REDUCT_EVAL_FRAMES_INITIAL 32 |
| #define REDUCT_EVAL_FRAMES_GROWTH_FACTOR 2 |
| REDUCT_API void reduct_eval_state_deinit | ( | reduct_eval_state_t * | state | ) |
Deinitialize an evaluation state structure.
| state | The evaluation state to deinitialize. |
Definition at line 36 of file eval_impl.h.
| REDUCT_API reduct_handle_t reduct_eval | ( | reduct_t * | reduct, |
| reduct_function_t * | function | ||
| ) |
Evaluates a compiled Reduct function.
| reduct | The Reduct instance. |
| function | The function to evaluate. |
| REDUCT_API reduct_handle_t reduct_eval_file | ( | reduct_t * | reduct, |
| const char * | path | ||
| ) |
Parses, compiles and evaluates a file.
| reduct | The Reduct instance. |
| path | The path to the file. |
Definition at line 518 of file eval_impl.h.
| 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 | The Reduct instance. |
| str | The string to evaluate. |
| len | The length of the string. |
Definition at line 528 of file eval_impl.h.
| 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.
| reduct | The Reduct instance. |
| callable | The callable item handle. |
| argc | The number of arguments. |
| argv | Pointer to the arguments array. |
Definition at line 538 of file eval_impl.h.