%% ------------------- dcg.pl ------------------------
%% S1. der alte Mann trinkt den Kaffee.
%% S2. er trinkt ihn aus dem Becher.
%% S3. Klaus mag den Kaffee aus dem Becher.
%% S4. er trinkt den Kaffee aus dem Becher.

s --> np(nom), vp.

vp --> iv.
vp --> tv_1, np_s(akk), pp.
vp --> tv_2, np_s(akk).

np(K) --> np_s(K).
np(K) --> np_s(K), pp.

np_s(K) --> det(K), n(K).
np_s(K) --> en(K).
np_s(K) --> det(K), a(K), n(K).

pp --> p(K), det(K), n(K).

det(nom) --> ['der'].
det(akk) --> ['den'].
det(dat) --> ['dem'].

n(_) --> ['Mann'].
n(_) --> ['Kaffee'].
n(_) --> ['Becher'].

en(nom) --> ['Klaus'].

a(nom) --> ['alte'].
a(akk) --> ['alten'].

tv_1 --> ['trinkt'].
tv_2 --> ['mag'].
iv --> ['schlaeft'].

pron --> ['er'].
pron --> ['ihn'].

p(dat) --> ['aus'].
