Expand description
Grammar-constrained FSM sieve for neuro-symbolic LLM output (zero-heap hot path).
Structs§
- Neuro
Symbolic Sieve - Neuro-symbolic grammar sieve (masks built once from tokenizer + lex — cold path may alloc).
- Sieve
LexSpec - Stack-only IRI hash lists for dynamic
.q42.lexmask population (cold path). - Sieve
Slot - One lexicon-bound token slot in a state mask.
- Sieve
State Mask - Stack mask: linear scan during chunked argmax (no
HashMap/Vec).
Enums§
- Sieve
Error - Sieve exhausted: no allowed token had finite logit mass.
- Sieve
State - FSM states for Subject → Predicate → Object graph emission.
Constants§
- MAX_
SIEVE_ ALLOW - Max allowed token IDs per FSM state (stack-only mask).