|
Reduct
v1.0.4-3-gdaf0d70
A functional and immutable language.
|
Core definitions and structures. More...
Go to the source code of this file.
Data Structures | |
| struct | reduct_input_t |
| Input structure. More... | |
| struct | reduct_constant_t |
| Constant structure. More... | |
| struct | reduct_t |
| State structure. More... | |
Macros | |
| #define | REDUCT_BUCKETS_MAX 128 |
| Amount of buckets used for intering atoms. | |
| #define | REDUCT_CONSTANTS_MAX 8 |
| Maximum amount of predefined constants. | |
| #define | REDUCT_GC_THRESHOLD_INITIAL 128 |
| Initial blocks allocated threshold for garbage collection. | |
Enumerations | |
| enum | reduct_input_flags_t { REDUCT_INPUT_FLAG_NONE = 0 , REDUCT_INPUT_FLAG_OWNED = 1 } |
| Input flags. More... | |
Functions | |
| REDUCT_API reduct_t * | reduct_new (reduct_error_t *error) |
| Create a new Reduct structure. | |
| REDUCT_API void | reduct_free (reduct_t *reduct) |
| Free the Reduct structure. | |
| REDUCT_API void | reduct_args_set (reduct_t *reduct, int argc, char **argv) |
| Set the command line arguments for the Reduct structure. | |
| REDUCT_API void | reduct_constant_register (reduct_t *reduct, const char *name, struct reduct_item *item) |
| Register a constant in a Reduct structure. | |
| REDUCT_API reduct_input_t * | reduct_input_new (reduct_t *reduct, const char *buffer, reduct_size_t length, const char *path, reduct_input_flags_t flags) |
| Create a new input structure and push it onto the input stack. | |
Core definitions and structures.
Definition in file core.h.