Chapter 9 software

Here is the source code for the Prolog programs discussed in this chapter.

Section             Program
9.2                   speaks
9.2                   family
9.4.1                factorial
9.4.2                bsort
9.5.1                diff
9.5.2                building
9.5.3                grammar1
9.5.3                grammar2
9.5.4                expression
9.5.4                expression2
9.5.5                semantics
9.6                   fibonacci
Exercise 9.18  grammar3