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§
- Grammar
Format Profile - Capability profile for one grammar notation.
Enums§
- Grammar
Fidelity Level - 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, orNonewhen the format has no fidelity row yet.