Help request

From: Sara Bernardini <sarabern_at_tiscalinet.it>
Date: Thu 27 Sep 2001 05:13:29 PM GMT
Message-ID: <001401c14777$ff887da0$58820b3e@pmeridia>
Dear ECLiPSe developer,
I am using ECLiPSe to construct a simple meta-interpreter for Prolog but I meet a problem when I try to write a clause to manage the cut.
My simple interpreter is something like that:

solve(true):-!.
solve((A,B)):-!,solve(A),solve(B).
solve(not A):-!,not solve(A).
solve(A):-clause(A,B),solve(B).

I would like adding a clause like   solve(!):-......  , but neither 

solve(!):-!. 

nor 

solve(!):-!(reduce(A)).
reduce(A):-clause(A,B),solve(B). 

work.

Might you please give me any suggestion.
 
Thanks you very much for your help.
 
                                                                                                                    Yours sincerely
                                                                                                                                                Sara Bernardini
Received on Fri Sep 28 10:35:44 2001

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:07:10 PM GMT GMT