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

Runtime conflict resolution via user-supplied oracles. More...

Data Structures

struct  OracleContext
 Context passed to an oracle callback when the system needs a disambiguation decision. More...
 

Typedefs

typedef int(* OracleCallback) (const OracleContext *ctx)
 Oracle callback type.
 

Detailed Description

Runtime conflict resolution via user-supplied oracles.

Typedef Documentation

◆ OracleCallback

typedef int(* OracleCallback) (const OracleContext *ctx)

#include <include/extension_registry.h>

Oracle callback type.

Called when the disambiguation system needs a runtime decision.

Parameters
ctxContext describing the conflict and candidates.
Returns
Zero-based index of the chosen candidate, or -1 if the oracle cannot decide.

Definition at line 122 of file extension_registry.h.