A grammar of dreams