Context-Free Grammar Evolver
Seed Grammar (plain CFG, auto-parsed)
Format: NONTERM -> rhs1 | rhs2 | ... . Uppercase = nonterminal. Terminals are bare words or "quoted strings".
Use {} for empty. {br} inserts a line break. Start must be S.
Best Grammar Export
Options and Candidates
Info & How To Use
What this is. A four-up CFG evolver. You provide a plain CFG seed (Start symbol S). The app breeds four candidates, enforces novelty (structure & text), and lets you freeze a favorite so it persists as an elite.
Quick start (3 steps).
- Paste or edit your seed CFG below (S must exist; use {} for empty; use {br} to force a line break).
- Click Evolve. Select one or more candidates you like; optionally Freeze one to carry it forward. Click Evolve again to breed the next four.
- Click Show Best CFG to preview the current best rules, then Copy CFG or Send to RPG.
Cards. Each shows output text and rule expansions. Use “Copy Text” or “Copy CFG” on the card to export.
Novelty Guard. Exact duplicate texts in the same cohort are rejected; clones of the seed/best are re-rolled automatically.
Credits. Built to pair with Recursive Production Grammar.
No comments:
Post a Comment