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?
-
- Active Member
- Posts: 25
- Joined: 6 Aug 2012 16:56
-
- VIP Member
- Posts: 1468
- Joined: 28 Feb 2000 0:01
Re: Does PIE allow you to define your own predicates?
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:
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
PDC
-
- Active Member
- Posts: 25
- Joined: 6 Aug 2012 16:56
Re: Does PIE allow you to define your own predicates?
Yep, I've been through the instructions, just wasn't familiar with the pie interface.
Ok, thanks.
Ok, thanks.