Skip to main content

Module fidelity

Module fidelity 

Source
Expand description

Per-format capability profiles for grammar round-trip fidelity.

Each supported grammar notation exposes a LanguageProfile over the grammar IR construct vocabulary. Constructs are classified as lossless or equivalent when the target notation represents them without a documented lossy fallback, and lossy when the emitter must degrade, synthesize helper productions, drop metadata, or reject the construct with an explicit unsupported-construct error.

Structs§

GrammarFormatProfile
Capability profile for one grammar notation.

Enums§

GrammarFidelityLevel
Round-trip fidelity level for one construct in one grammar format.

Constants§

GRAMMAR_CONSTRUCTS
The grammar IR construct vocabulary classified by the fidelity matrix.
GRAMMAR_FORMATS
Grammar formats with a fidelity profile.

Functions§

canonical_grammar_format
Canonicalizes a grammar format label to one of GRAMMAR_FORMATS.
grammar_format_profile
Returns the capability profile for a grammar format, or None when the format has no fidelity row yet.