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

Configuration for the execution policy engine. More...

#include <execution_policy.h>

Data Fields

ParserExecuteFn execute_fn
 Callback to run a parser.
 
int max_executions
 Maximum number of parsers to execute.
 
LimeExecMode policy
 Which policy to use.
 
bool stop_on_error
 If true, execution stops at the first error.
 

Detailed Description

Configuration for the execution policy engine.

Definition at line 192 of file execution_policy.h.

Field Documentation

◆ execute_fn

ParserExecuteFn ExecutionPolicyConfig::execute_fn

Callback to run a parser.

Definition at line 194 of file execution_policy.h.

◆ max_executions

int ExecutionPolicyConfig::max_executions

Maximum number of parsers to execute.

0 means unlimited. Useful as a safety limit for EXEC_ALL.

Definition at line 209 of file execution_policy.h.

◆ policy

LimeExecMode ExecutionPolicyConfig::policy

Which policy to use.

Definition at line 193 of file execution_policy.h.

◆ stop_on_error

bool ExecutionPolicyConfig::stop_on_error

If true, execution stops at the first error.

If false, errors are collected and all parsers run. Only meaningful for EXEC_ALL, EXEC_CHAIN, and EXEC_CONDITIONAL.

Definition at line 202 of file execution_policy.h.


The documentation for this struct was generated from the following file: