Simple extensions to the DCG
Extend the DCG so that it can also handle ditransitive verbs and nouns which are modified by prepositional phrases (see yesterday's exercise). The DCG should also construct the parse trees for these structures correctly. Solution