Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Free Prologs that support #!

0 views
Skip to first unread message

ashley.f...@gmail.com

unread,
Sep 25, 2008, 12:14:44 PM9/25/08
to
Besides SWI, are there any other free Prologs out there that support
creation of Unix scripts using the #! notation?

Thanks.

Benjamin L. Russell

unread,
Sep 26, 2008, 2:45:06 AM9/26/08
to
On Thu, 25 Sep 2008 09:14:44 -0700 (PDT), ashley.f...@gmail.com
wrote:

>Besides SWI, are there any other free Prologs out there that support
>creation of Unix scripts using the #! notation?

While I'm not sure whether it supports creation of UNIX scripts using
the "#!" notation, YAP Prolog (http://www.dcc.fc.up.pt/~vsc/Yap/)
includes certain built-in predicates with access to UNIX-like
functionality (see
http://www.dcc.fc.up.pt/~vsc/Yap/documentation.html#SEC62).

-- Benjamin L. Russell

Benjamin L. Russell

unread,
Sep 26, 2008, 3:00:45 AM9/26/08
to
>On Thu, 25 Sep 2008 09:14:44 -0700 (PDT), ashley.f...@gmail.com
>wrote:
>
>>Besides SWI, are there any other free Prologs out there that support
>>creation of Unix scripts using the #! notation?

Actually, I just stumbled across the answer to your question for YAP
Prolog (see "2.2 Running Prolog Files" of "YAP Prolog User's Manual"
at http://www.dcc.fc.up.pt/~vsc/Yap/documentation.html#SEC10):

>YAP can also be used to run Prolog files as scripts, at least in Unix-like environments. A simple example is shown next:
>
>#!/usr/local/bin/yap -L --
>#
># Hello World script file using YAP
>#
># put a dot because of syntax errors .
>
>:- write('Hello World'), nl.

Hope this helps....

-- Benjamin L. Russell

Michael D. Kersey

unread,
Sep 27, 2008, 12:48:04 PM9/27/08
to

Benjamin L. Russell

unread,
Sep 30, 2008, 7:34:13 AM9/30/08
to

Speaking of Ciao-Prolog, I just attempted to install version 1.10 #5
(the link for the Windows XP edition of version 1.10 #8 was broken),
but although the system itself installed, I was unable to invoke
ciao-mode in GNU Emacs 22.1.1. Attempting to do so resulted in some
kind of error of a "symbol-p" being undefined (I have since
uninstalled Ciao-Prolog, and am unable to reproduce the error without
reinstalling the application), even though I was able to invoke the
regular shell command in Emacs.

The included documentation was not helpful in solving this particular
problem.

I then looked through the ai.prolog.ciao.general threads at
http://osdir.com/ml/ai.prolog.ciao.general/ for a solution, to no
avail. Apparently, other installation-related questions there had
also gone unanswered.

Because uninstalling Ciao-Prolog completely required manipulating the
registry using regedit.exe, which slightly messed up the settings for
another programming language application, requiring me to install that
application, I am hesitant to reinstall Ciao-Prolog.

Has anybody else been able to get Ciao-Prolog 1.10 #5 to be invoked
successfully as ciao-mode in GNU Emacs 22.1.1 on Windows XP, Service
Pack 2?

-- Benjamin L. Russell

Clark Wilson

unread,
Sep 30, 2008, 9:07:04 AM9/30/08
to
> On Sat, 27 Sep 2008 11:48:04 -0500, "Michael D. Kersey"
> <mdke...@hal-pc.org> wrote:
>
[snip]

> Has anybody else been able to get Ciao-Prolog 1.10 #5 to be invoked
> successfully as ciao-mode in GNU Emacs 22.1.1 on Windows XP, Service
> Pack 2?
>

It works for me with GNU Emacs 21.3.1. Haven't tried 22.1.1.

CW


0 new messages