|
Lime Parser Generator 0.1.0
Runtime-extensible LALR(1) parser with SIMD tokenization and LLVM JIT
|
Callback type for running a parser's semantic actions. More...
Typedefs | |
| typedef bool(* | ParserExecuteFn) (LimeParserHandle *parser, const GrammarExtensionMetadata *ext, void *input, void **result, char **error) |
| Callback type for executing a parser's semantic actions. | |
Callback type for running a parser's semantic actions.
| typedef bool(* ParserExecuteFn) (LimeParserHandle *parser, const GrammarExtensionMetadata *ext, void *input, void **result, char **error) |
#include <include/execution_policy.h>
Callback type for executing a parser's semantic actions.
The execution policy engine calls this to run each winner's parser.
| parser | Opaque parser handle. | |
| ext | Metadata for the grammar extension being executed. | |
| input | Input data for chaining (NULL for non-chained execution). | |
| [out] | result | On success, receives the semantic action output. |
| [out] | error | On failure, receives a malloc'd error message. |
| true | Execution succeeded. |
| false | Execution failed; see error. |
Definition at line 174 of file execution_policy.h.