Re: Prolog as a scripting language



On Wed, 28 Feb 2007 08:41:35 -0600
A.L. <fela@xxxxxxxx> wrote:

On 28 Feb 2007 14:22:46 GMT, Jan Wielemaker <jan@xxxxxxxxxxxxxxxxxxx>
wrote:


Good. Could you clarify what this really means, quote: " the more you
rely on Prolog terms for internal data representation in config files,
logs, scripts.."? This means that Prolog scripts are good in Prolog
environment?... And if I don't depend on Prolog terms in internal data
representation then what?...

... then you have to write a parser for your config files. Prolog syntax
can play the same role as XML (we don't have XML-Schema, but there are some
type systems around that can play the same role).

...and this is the reason why for scripting I am using Perl where I
don't need reinvent the wheel.

No question that in Prolog environment it has more sense to use Prolog
for scripting, but in other environments it is not necessary true.

A.L.

As pointed out, Perl is not a happy camper in any secure environment.

Dhu
.



Relevant Pages

  • Re: Prolog as a scripting language
    ... rely on Prolog terms for internal data representation in config files, ... This means that Prolog scripts are good in Prolog ... And if I don't depend on Prolog terms in internal data ... then you have to write a parser for your config files. ...
    (comp.lang.prolog)
  • Re: Prolog as a scripting language
    ... Regarding your general question about Prolog shell programming: ... DES has a nice shell written in Prolog: ... rely on Prolog terms for internal data representation in config files, ...
    (comp.lang.prolog)