Generates programs conforming to a sample Backus-Naur Form grammar