%	Parses simple sentences such as 'the giraffe eats the apple'

error :- #'.', !, fail.
error :- #X, error.

sent :- np, vp, #'.', !.
sent :- error.

np :- det, noun.
np :- proper_noun.

vp :- iverb.
vp :- tverb, np.

det :- #the.
det :- #a.

noun :- #giraffe.
noun :- #apple.

proper_noun :- #john.
proper_noun :- #mary.

iverb :- #dreams.

tverb :- #dreams.
tverb :- #eats.
