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 chris.pl, 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 chris_dcg.pl is a Prolog structure representing a tree. lehner/1 is defined as

lehner(L):-
   sentence(Tree,L,[]),
   drucke_baum(Tree).