Decode-Time Grammars: Constrained LLM Generation over a Refinement Order of Grammar Fragments
Large language models now write a growing share of the world's code, increasingly inside agents and serving systems that compile, execute, or dispatch generated code without line-by-line review. This works well for mainstream languages but remains brittle for low-resource programming surfaces such as domain-specific la...