Complete noob question.

From: Jason A Myers (jaypers_at_hotmail.com)
Date: 06/22/04


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



Relevant Pages

  • Re: IDE for C++: KDevelop vs Emacs vs Other
    ... > via Emacs's simpler interface. ... You're using Emacs as an IDE, ... In fact, Prolog *always* seemed easier and more, well, ...
    (comp.os.linux.development.apps)
  • Re: removing the largest item from the list
    ... >>Majority of Prolog books are still in print and can be purchased. ... Prolog Programming for Artificial Intelligence. ... marked with three asterisks are more difficult. ... >the Prolog Community to increase Prolog's popularity and usage? ...
    (comp.lang.prolog)
  • Re: Revenge is a dish best served cold (arrays and 8 queens)
    ... but very relevant correction) - it says the basic ... YES - that's EXACTLY what I was referring to. ... that I have not read any books, much less any prolog books. ...
    (comp.lang.prolog)
  • Re: Complete noob question.
    ... > Emacs or Prolog. ... I have purchased two books ... prolog facts and prolog questions. ... ?- assert(greek(socrates)). ...
    (comp.lang.prolog)
  • Re: Interpreter/Compiler texts
    ... If you really are looking for books describing said ... construction "in Prolog", you may wish to check out "The Art of Prolog" ... If, however, you're looking for books about constructing a Prolog ...
    (comp.lang.prolog)