Complete noob question.
From: Jason A Myers (jaypers_at_hotmail.com)
Date: 06/22/04
- Next message: Björn Lindström: "Re: Complete noob question."
- Previous message: Arnaud Gotlieb: "ICLP04: Call for participation -- early registration"
- Next in thread: Björn Lindström: "Re: Complete noob question."
- Reply: Björn Lindström: "Re: Complete noob question."
- Reply: Léon Planken: "Re: Complete noob question."
- Reply: Martin Sondergaard: "Re: Complete noob question."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 21 Jun 2004 19:32:26 -0700
I have recently began trying to learn Prolog and know NOTHING about
Emacs or Prolog. But I am trying to learn! I have purchased two books
on it and am trying to step through them. (Any tips on books you think
might help are greatly appreciated) I am currently using Ciao prolog
on windows and GNU emacs.
Anyway, to the point.
I have read in the books, and on line things like below:
--------------------------------------------------
>As a simple example here is a traditional inference test program
mortal(X):-man(X).
man(X):-greek(X).
greek(socrates).
?-mortal(socrates).
>Try typing in this example after starting the interpreter with the
command
iconx prolog
>and the response is
yes
>After this the interpreter will be waiting for another clause or
query to >be entered. Try entering another query for example
?-mortal(socrates).
-------------------------------------------------
okay, I type in the nifty little program and then below it(per the
instructions) I write ?-mortal(socrates). and hit enter.
nothing happens.
I have even tried to structure it like I have seen in other places,
such as:
mortal(socrates)?
and I get nothing when I hit my carriage return. The cursor blinks at
me and laughs.
Can someone give a quick hand-hold to a noob who is trying to learn
the language? Please?
Thanks,
Jason
- Next message: Björn Lindström: "Re: Complete noob question."
- Previous message: Arnaud Gotlieb: "ICLP04: Call for participation -- early registration"
- Next in thread: Björn Lindström: "Re: Complete noob question."
- Reply: Björn Lindström: "Re: Complete noob question."
- Reply: Léon Planken: "Re: Complete noob question."
- Reply: Martin Sondergaard: "Re: Complete noob question."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|