Disappearing Cryptography: Information Hiding: Steganography & Watermarking, Second Edition

This appendix contains a sample context-free grammar designed to simulate the voiceover from a baseball game. The grammar is printed in the format required by the program in Appendix A.
Each variable begins with an asterisk. Each production has two components that are broken up by forward slashes. The first part is the mixture of variables and terminals that will replace the variable in question during the production. The second is the weight given to one production in the random selection process. The final production for each variable is ended with a double forward slash.
*period = ./1//*questionmark = ?/1//*WeatherComment = Hmm . Do you think it will rain ? /.1/ What are the chances of rain today ? /.1/ Nice weather as long as it doesn't rain . /.1/ Well, if rain breaks out it will certainly change things . /.1/ You can really tell the mettle of a manager when rain is threatened . /.1//*BlogsOutfielder = Orville Baskethands /.1/ Robert Liddlekopf /.1/ Harrison "Harry" Hanihan /.1//*BlogsInfielder = Gerry Johnson /.1/ ...