Article View: comp.lang.prolog
Article #2945Do you consider yourself a TURBO PROLOG expert?
From: Patrick Fitzsimmons
Date: Tue, 26 Jan 1988 00:30
Date: Tue, 26 Jan 1988 00:30
40 lines
1996 bytes
1996 bytes
If so, then I need your help.
I am a new Turbo Prolog user having great difficultly trying
to implement a prolog program in Turbo Prolog. The program works
fine in other prologs. My problem is in the DOMAINS sections trying
to get it to accept what I put. I thought that a more experienced
user may be able to offer some help.
Don't ask why I am using Turbo Prolog, I really don't want to but I
must. To expand on my problem a bit, I currently have in the DOMAINS
section:
entry = symbol ;
n(entry)
list = entry*
The n(entry) is meant to represent NOT entry.
I have a negate predicate defined as:
negate(n(G), G) :-
ne(n(_), G).
negate(G, n(G)) :-
ne(n(_), G).
ne(X, Y) :-
not(X = Y).
P.S. Sorry if I have posted this to an inappropriate newsgroup.
Please send responses my e-mail and I will summarize in
comp.lang.prolog if there is enough interest.
|------------------------------------------------------------------------|
| Patrick Fitzsimmons | pat@alberta.UUCP |
| Computing Science Department | |
| University of Alberta | |
| Edmonton, Alberta | |
| T6G 2H1 | |
|------------------------------------------------------------------------|
Technical Details
Message-ID:
<282@cavell.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!lll-tis!ames!rutgers!mtune!whuts!homxb!ihnp4!alberta!patShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!lll-tis!ames!rutgers!mtune!whuts!homxb!ihnp4!alberta!pat From: pat@alberta.UUCP (Patrick Fitzsimmons) Newsgroups: comp.lang.prolog,comp.lang.misc,comp.ai,comp.sys.ibm.pc,comp.sys.misc,comp.sources.wanted,comp.misc Subject: Do you consider yourself a TURBO PROLOG expert? Message-ID: <282@cavell.UUCP> Date: 26 Jan 88 00:30:30 GMT Reply-To: pat@alberta.UUCP Followup-To: comp.lang.prolog Organization: U. of Alberta, Edmonton, AB Lines: 39 Keywords: AI turbo prolog help WUP