Skip to content

Commit 7cb49ce

Browse files
reid-spencerclaude
andcommitted
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

File tree

.github/workflows/scala.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,11 @@ jobs:
193193
cd language/jvm/src/test/python
194194
python validate_external_riddl.py --repo ${{ github.workspace }}/riddl-examples
195195
196+
- name: Verify GBNF is up-to-date
197+
run: |
198+
cd language/jvm/src/test/python
199+
python ebnf_to_gbnf.py --check
200+
196201
dependency-check:
197202
timeout-minutes: 15
198203
permissions:

0 commit comments

Comments
 (0)