Lime Parser Generator 0.1.0
Runtime-extensible LALR(1) parser with SIMD tokenization and LLVM JIT
Loading...
Searching...
No Matches
Parser Execution Callback

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.
 

Detailed Description

Callback type for running a parser's semantic actions.

Typedef Documentation

◆ ParserExecuteFn

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.

Parameters
parserOpaque parser handle.
extMetadata for the grammar extension being executed.
inputInput data for chaining (NULL for non-chained execution).
[out]resultOn success, receives the semantic action output.
[out]errorOn failure, receives a malloc'd error message.
Return values
trueExecution succeeded.
falseExecution failed; see error.

Definition at line 174 of file execution_policy.h.