Commit 7cb49ce
Add EBNF-to-GBNF converter for llama.cpp constrained generation
Automated converter transforms RIDDL's EBNF grammar (258 rules)
into GBNF format for llama.cpp constrained text generation.
Features auto-classification of terminal vs structural rules
for whitespace insertion, hand-maintained overrides for 3
negative-lookahead patterns, and CI freshness check.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 098d07d commit 7cb49ce
4 files changed
Lines changed: 1556 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
196 | 201 | | |
197 | 202 | | |
198 | 203 | | |
| |||
0 commit comments