A Conversation for The H2G2 Programmers' Corner
A prolog question
Terran Started conversation Nov 15, 2003
I'm trying to implement a nice piece of prolog code using SWI-Prolog which should work, however I'm obviously missing something because all I get is the error message "Syntax error : Operator Expected."
The code is :
request :- ( , X, Y, Z), person :- X, iceCreamType :- Y, topping :- Z, !.
it goes on to fill out the details like :
request :- (1, jimmy, vanilla, hund_thou).
request :- (2, alice, vanilla, hund_thou).
.
.
.
and so on going through the possibilities. If anyone could shed some light on this problem I would appreciate it
Key: Complain about this post
A prolog question
More Conversations for The H2G2 Programmers' Corner
Write an Entry
"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."