Discussions related to Visual Prolog
VPExplorer
Active Member
Posts: 25
Joined: 6 Aug 2012 16:56

Does PIE allow you to define your own predicates?

Unread post by VPExplorer »

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: 1398
Joined: 28 Feb 2000 0:01

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

Unread post by Thomas Linder Puls »

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
Active Member
Posts: 25
Joined: 6 Aug 2012 16:56

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

Unread post by VPExplorer »

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

Ok, thanks.
Post Reply