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

The result of a disambiguation resolution. More...

#include <disambiguation.h>

Data Fields

float confidence
 Confidence: 0.0 = no idea, 1.0 = certain.
 
char * explanation
 Human-readable reason (malloc'd, may be NULL)
 
int nwinners
 Number of winners (usually 1)
 
LimeContextwinning_contexts
 Array of winners (malloc'd)
 

Detailed Description

The result of a disambiguation resolution.

Contains the winning extension context(s) as LimeContext entries (from conflict.h), a confidence score, and an optional textual explanation.

Definition at line 96 of file disambiguation.h.

Field Documentation

◆ confidence

float StrategyResult::confidence

Confidence: 0.0 = no idea, 1.0 = certain.

Definition at line 99 of file disambiguation.h.

◆ explanation

char* StrategyResult::explanation

Human-readable reason (malloc'd, may be NULL)

Definition at line 100 of file disambiguation.h.

◆ nwinners

int StrategyResult::nwinners

Number of winners (usually 1)

Definition at line 98 of file disambiguation.h.

◆ winning_contexts

LimeContext* StrategyResult::winning_contexts

Array of winners (malloc'd)

Definition at line 97 of file disambiguation.h.


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