users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mode


From: Alberto Simões
Subject: Re: mode
Date: Sun, 16 Dec 2012 21:59:29 +0000

Dear Haris

You can use

[user].

to make prolog read facts/rules from the terminal.
Then type Ctrl+D to get back to the prolog prompt.

But you will loose all your program, and make it difficult to edit.

The best way is to use your preferred editor (like vi, vim, pico, nano, emacs, etc in linux or notepad, notepad++ in windows) and the load your file into prolog.

Suppose you saved you file as "code.pl", then you can load it for instance, using

?- [code].

or from the command line (linux), using

gprolog --consult-file code.pl

Hope that helps,
Alberto




On Sun, Dec 16, 2012 at 1:47 PM, Haris Bogdanovich <address@hidden> wrote:
Hi
 
How do I  switch to mode where I can enter facts/rules ?
 
Thanks                                                                

_______________________________________________
Users-prolog mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/users-prolog




--
Alberto Simões


reply via email to

[Prev in Thread] Current Thread [Next in Thread]