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

Enumeration of available disambiguation strategies. More...

Enumerations

enum  LimeStrategy {
  STRAT_PRIORITY = 0 , STRAT_FORK_RESOLVE = 1 , STRAT_BAYESIAN = 2 , STRAT_LLM = 3 ,
  STRAT_CUSTOM = 4
}
 Enumeration of available disambiguation strategies. More...
 

Detailed Description

Enumeration of available disambiguation strategies.

Enumeration Type Documentation

◆ LimeStrategy

#include <include/disambiguation.h>

Enumeration of available disambiguation strategies.

Note: this is the runtime-side strategy selector used by disambiguation_create(). The user-facing extension metadata in extension_registry.h uses a separate enum (DisambiguationStrategy with DISAMBIG_* values) that describes an extension's preference rather than the actual runtime strategy.

Enumerator
STRAT_PRIORITY 

Resolve by extension priority metadata.

STRAT_FORK_RESOLVE 

Fork parse, try each, pick survivor.

STRAT_BAYESIAN 

Evidence accumulation (posterior probs)

STRAT_LLM 

Query LLM oracle for resolution advice.

STRAT_CUSTOM 

User-provided vtable.

Definition at line 72 of file disambiguation.h.