How to run Lehner's tree drawing program with Ray Dougherty's parser(s).

1. Download a simple DCG covering the same data as Ray's program, if you haven't done so yet.

3. Download, if you haven't done so yet.

4. Start your Prolog system and consult the two programs.

5. Start a goal with a call like the following:

?- lehner([the,woman,sees,in,the,house]).

Note: The output of sentence/3, a DCG predicate defined in is a Prolog structure representing a tree. lehner/1 is defined as