5 Context Free Grammars

This lecture has four goals:

  1. To recapitulate some basic concepts of Context Free Grammars.

  2. To review Prolog's built-in DCG mechanism and to show how Context Free Grammars can directly be formulated as DCGs.

  3. To show that the inbuilt feature-passing mechanism of DCGs enables them to handle long distance dependencies. We first give a rather naive DCG for simple English relative clauses, and then show how the gap-threading technique can be used to improve it.

  4. To discuss the good and bad points of DCGs, and set the stage for our later work with grammars and features.



Kristina Striegnitz, Patrick Blackburn, Katrin Erk, Stephan Walter, Aljoscha Burchardt and Dimitra Tsovaltzi
Version 1.2.5 (20030212)