Reduct  v1.0.4-3-gdaf0d70
A functional and immutable language.
Loading...
Searching...
No Matches
Parse

Detailed Description

Functions

REDUCT_API reduct_handle_t reduct_parse (reduct_t *reduct, const char *str, reduct_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.
 

Function Documentation

◆ reduct_parse()

REDUCT_API reduct_handle_t reduct_parse ( reduct_t reduct,
const char *  str,
reduct_size_t  len,
const char *  path 
)

Parse a Reduct string.

Warning
The jump buffer must have been set using REDUCT_CATCH before calling this function.
Parameters
reductThe Reduct structure.
strThe Reduct string to parse, Reduct will take ownership of this string.
lenThe length of the input string.
pathThe path to the file being parsed (for error reporting).
Returns
The root item of the parsed expression, will be retained by the GC.

Definition at line 369 of file parse_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reduct_parse_file()

REDUCT_API reduct_handle_t reduct_parse_file ( reduct_t reduct,
const char *  path 
)

Parse a Reduct file.

Warning
The jump buffer must have been set using REDUCT_CATCH before calling this function.
Parameters
reductThe Reduct structure.
pathThe path to the file to parse.
Returns
The root item of the parsed expression, will be retained by the GC.

Definition at line 388 of file parse_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function: