[Top][All Lists]
[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
===============================================
- gprolog, Martin Nad, 2001/04/14
- Re: gprolog, Bowie Owens, 2001/04/18
- Re: gprolog,
Daniel Diaz <=