sketch out regular grammar