Simple Parser Written to Learn Prolog