Does PIE allow you to define your own predicates?

Discussions related to Visual Prolog
VPExplorer
Posts: 21
Joined: 6 Aug 2012 16:56

Does PIE allow you to define your own predicates?

Unread post by VPExplorer » 24 Sep 2019 18:25

Hi,

I'm able to run the standard predicates that PIE exposes, but can't type in any new facts, like

person(sally).


or

likes(karen,jeff).


, it just reports an unknown clause.

PIE doesn't take domains and predicates directives, like Visual Prolog. It seems like standard Prolog. But I can't figure out how to add facts.

What am I doing wrong?

User avatar
Thomas Linder Puls
VIP Member
Posts: 2447
Joined: 28 Feb 2000 0:01

Re: Does PIE allow you to define your own predicates?

Unread post by Thomas Linder Puls » 25 Sep 2019 8:16

Yes, it does. But the window window you are entering things in is a "goal" window. It interprets everything as a question/goal.

To enter your own clauses you will put them in an editor window and consult the contents.

I suggest that you go through:
Regards Thomas Linder Puls
PDC

VPExplorer
Posts: 21
Joined: 6 Aug 2012 16:56

Re: Does PIE allow you to define your own predicates?

Unread post by VPExplorer » 25 Sep 2019 16:48

Yep, I've been through the instructions, just wasn't familiar with the pie interface.

Ok, thanks.

Post Reply