|
Reduct
v4.0.5-1-g4851deb
A functional and immutable language.
|
Functions | |
| REDUCT_API reduct_handle_t | reduct_parse (reduct_t *reduct, const char *str, size_t len, const char *path) |
| Parse a Reduct string. | |
| REDUCT_API reduct_handle_t | reduct_parse_file (reduct_t *reduct, const char *path) |
| Parse a Reduct file. | |
| REDUCT_API reduct_handle_t reduct_parse | ( | reduct_t * | reduct, |
| const char * | str, | ||
| size_t | len, | ||
| const char * | path | ||
| ) |
Parse a Reduct string.
REDUCT_ERROR_CATCH before calling this function.| reduct | Pointer to the Reduct structure. |
| str | The Reduct string to parse. The caller is responsible for the memory of this string, it must not be freed for the lifetime of the parsed items. |
| len | The length of the input string. |
| path | The path to the file being parsed (for error reporting). |
| REDUCT_API reduct_handle_t reduct_parse_file | ( | reduct_t * | reduct, |
| const char * | path | ||
| ) |
Parse a Reduct file.
REDUCT_ERROR_CATCH before calling this function.| reduct | Pointer to the Reduct structure. |
| path | The path to the file to parse. |