Thanks.
>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
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
The Ciao-Prolog system at http://www.clip.dia.fi.upm.es/Software/Ciao/
e.g., see http://www.clip.dia.fi.upm.es/Software/Ciao/ciao_html/ciao_10.html
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
It works for me with GNU Emacs 21.3.1. Haven't tried 22.1.1.
CW