Re: mode

Alberto Simões <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <CAAkRyrtCg2-BWo=saw+AM17eCOHciox-OB_NrUym08khJgkcww@mail.gmail.com>
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 <[email protected]>wrote:

> **
> Hi
>
> How do I  switch to mode where I can enter facts/rules ?
>
> Thanks
>
> _______________________________________________
> Users-prolog mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/users-prolog
>
>


-- 
Alberto Simões

_______________________________________________
Users-prolog mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/users-prolog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.