|
Lime Parser Generator 0.1.0
Runtime-extensible LALR(1) parser with SIMD tokenization and LLVM JIT
|
Access the cloned parser state within a fork. More...
Functions | |
| void | parse_fork_abandon (ParseFork *fork) |
| Mark a fork as abandoned (pruned). | |
| void | parse_fork_complete (ParseFork *fork, void *result, void(*free_fn)(void *)) |
| Mark a fork as completed with the given semantic result. | |
| void | parse_fork_fail (ParseFork *fork) |
| Mark a fork as failed. | |
| void * | parse_fork_get_parser (ParseFork *fork) |
| Get a mutable pointer to the cloned yyParser inside a fork. | |
| struct ParserSnapshot * | parse_fork_get_snapshot (const ParseFork *fork) |
| Get the snapshot associated with a fork. | |
Access the cloned parser state within a fork.
| void parse_fork_abandon | ( | ParseFork * | fork | ) |
#include <include/parser_fork.h>
Mark a fork as abandoned (pruned).
| fork | The fork to abandon. |
| void parse_fork_complete | ( | ParseFork * | fork, |
| void * | result, | ||
| void(*)(void *) | free_fn | ||
| ) |
#include <include/parser_fork.h>
Mark a fork as completed with the given semantic result.
Sets status to FORK_COMPLETED and stores the result pointer.
| fork | The fork to complete. |
| result | Semantic action output. |
| free_fn | Destructor for result (NULL to use free()). |
| void parse_fork_fail | ( | ParseFork * | fork | ) |
| void * parse_fork_get_parser | ( | ParseFork * | fork | ) |
#include <include/parser_fork.h>
Get a mutable pointer to the cloned yyParser inside a fork.
The returned pointer is valid until free_parse_fork() is called.
| fork | The fork to access. |
fork is NULL or has no cloned state. | struct ParserSnapshot * parse_fork_get_snapshot | ( | const ParseFork * | fork | ) |
#include <include/parser_fork.h>
Get the snapshot associated with a fork.
| fork | The fork to query. |