bug-prolog
[Top][All Lists]
Advanced

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

Re: gprolog


From: Daniel Diaz
Subject: Re: gprolog
Date: Tue, 24 Apr 2001 13:06:50 +0200

you can use this piece of code:

q:-
        argument_list([Arg]),
        read_from_atom(Arg, Goal),
        call(Goal).


:- initialization(q).

let's suppose this file is called exec_cmd.pl

compile it with:

   gplc exec_cmd.pl

then you can execute a Prolog predicate as follows:

  exe_cmd 'GOAL.'

ex (NB use the ' and the final .):
  exec_cmd 'write(test).'

this will displays the atom test.



address@hidden said:
> Hi!
> Is it possible to run gprolog in command-prompt in unix somting like!
> sensenet(12:20:29)@ "some kommand" happy(jean)
> and got the result? 

-- 
===============================================
                 Daniel Diaz
University of Paris 1      INRIA Rocquencourt
75013 Paris FRANCE      78153 Le Chesnay FRANCE
        web: http://pauillac.inria.fr/~diaz
        email: address@hidden
===============================================





reply via email to

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