|
Reduct
v1.0.4-3-gdaf0d70
A functional and immutable language.
|
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. | |
| #define REDUCT_BUCKETS_MAX 128 |
| #define REDUCT_CONSTANTS_MAX 8 |
| #define REDUCT_GC_THRESHOLD_INITIAL 128 |
| enum reduct_input_flags_t |
| REDUCT_API reduct_t * reduct_new | ( | reduct_error_t * | error | ) |
Create a new Reduct structure.
| error | Pointer to the error structure to be used for error reporting. |
Definition at line 11 of file core_impl.h.
| REDUCT_API void reduct_free | ( | reduct_t * | reduct | ) |
Free the Reduct structure.
| reduct | Pointer to the Reduct structure to free. |
Definition at line 47 of file core_impl.h.
| REDUCT_API void reduct_args_set | ( | reduct_t * | reduct, |
| int | argc, | ||
| char ** | argv | ||
| ) |
Set the command line arguments for the Reduct structure.
Will be utilized by the (args!) native.
| reduct | Pointer to the Reduct structure. |
| argc | The number of arguments. |
| argv | The argument strings. |
Definition at line 95 of file core_impl.h.
| REDUCT_API void reduct_constant_register | ( | reduct_t * | reduct, |
| const char * | name, | ||
| struct reduct_item * | item | ||
| ) |
Register a constant in a Reduct structure.
| reduct | Pointer to the Reduct structure. |
| name | The name of the constant. |
| item | The item associated with the constant. |
| 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.
| reduct | The Reduct structure. |
| buffer | The input buffer. |
| length | The length of the input buffer. |
| path | The path to the input file. |
| flags | Input flags. |
Definition at line 123 of file core_impl.h.