The Listening Grammar

from Lerdahl and Jackendoff's GTTM: