Skip to main content

Module prior

Module prior 

Source
Expand description

Delimiter-skeleton structural prior for positive grammar inference.

Structs§

ByteSpan
Half-open byte span [start, end) into the owning example string.
PriorOptions
Configuration for structural-prior construction.
SeedTree
One positive example paired with its seed tree.
StructuralPrior
A batch of seed trees plus the shared terminal alphabet.

Enums§

Delimiter
Delimiter family for a seed-tree group.
LeafKind
The kind of an opaque terminal leaf.
SeedNode
One node of a seed parse tree over a single example string.
WhitespacePolicy
Whitespace policy for text leaves.

Functions§

build_structural_prior
Builds the delimiter-skeleton structural prior for positive examples.