It took a few attempts (including feeding back a backtrace due to infinite recursion) but ChatGPT was able to generate a Python program to produce sequences of random output conforming to an EBNF grammar Use your imagination regarding when this can be useful