Overview
Grammar-based generation uses production rules to turn a start symbol into levels, text, shapes, or structured content.
Generates structures by expanding grammar symbols into rules.
Compact metadata for implementation and discovery.
Grammar-based generation uses production rules to turn a start symbol into levels, text, shapes, or structured content.
Quick facts
Runtime and memory behavior at a glance.
Best
O(output size)
Average
O(output size)
Worst
O(output size)
Space
O(output size)
symbol -> replacementReplaces a nonterminal with one of its grammar productions.
Show the generation state evolving from seed values to the final artifact.
Grammar-Based Generation should be used with the assumptions and tradeoffs of rule-Based Generation in mind.
What each reference supports for this entry.
Reference for grammar rewriting systems and procedural structure generation.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Both use grammar-like rewriting rules.
Shape grammars are a spatial grammar-based generation method.