[antlr-interest] Automated BNF text combinations generator with constraints

The Researcher researcher0x00 at gmail.com
Mon May 23 09:32:01 PDT 2011


FYI for others looking for same.

Ter did a quick take on this.
http://www.antlr.org/wiki/display/ANTLR3/Random+phrase+generation+using+an+ANTLR+grammar

which will lead you to the RandomPhrase.java in the distribution with the
following note.

NOTE: this does not work well for large grammars...it tends to recurse too
much and build really long strings.

I am writing my own from scratch in C# and the trick seems to be adding
constraints/heuristics to avoid the recurse.


More information about the antlr-interest mailing list