From sprior@geekster.com Sun Sep 16 23:20:44 2001
Received: from mail.speakeasy.net (mail11.speakeasy.net [216.254.0.211])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f8GLKhv07293
	for <prolog@swi.psy.uva.nl>; Sun, 16 Sep 2001 23:20:44 +0200 (MET DST)
Received: (qmail 87887 invoked from network); 16 Sep 2001 21:20:42 -0000
Received: from unknown (HELO geekster.com) ([216.254.101.188]) (envelope-sender <sprior@geekster.com>)
          by mail11.speakeasy.net (qmail-ldap-1.03) with SMTP
          for <prolog@swi.psy.uva.nl>; 16 Sep 2001 21:20:42 -0000
Message-ID: <3BA517FC.A98C5AD4@geekster.com>
Date: Sun, 16 Sep 2001 17:22:04 -0400
From: Steve Prior <sprior@geekster.com>
X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: prolog@swi.psy.uva.nl
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: [SWIPL] Getting Started with SWI

I haven't used Prolog in quite a while, but wanted to play a bit with
SWI.  I've got it installed and am trying to do the classic hello world
type program for Prolog - friends(X,Z).

In SWI, is it possible to type new predicate definitions on the
interactive command
line or do you HAVE to load them from a file?  I typed:

?- friends(X,Z):-
|      friends(X,Y),
|      friends(Y,Z).
ERROR: Undefined procedure: (:-)/2
?-


Would someone mind bootstrapping me and telling me what I'm missing?

Thanks
Steve Prior

