This is a Javascript program which allows you to define the production rules of a generative grammar and discover their output. Press Apply to test, and Help for documentation.

Also see: Markov generator; Generative Tree Gadget; Minimalism gadget.

—Mark Rosenfelder, 2018

Production rules:
  Nonterminal symbols (all caps) are:
Single letters
Words (space-separated)

Show parsed rules

Show debugging output

Allow optional symbols with ()

  Some datasets: