Re: [eclipse-clp-users] How to define a new predicate by using C/C++ API?

From: Kish Shen <kisshen_at_...5...>
Date: Fri, 17 Oct 2008 03:34:07 +0100
Giuseppe Di Guglielmo wrote:
> Dear all,
> how can I define a new predicate by using C/C++ API?
> 
> With standard eclipse command line I have to compile a file or entering it
> into terminal by using 
> [user]. <my_new_predicates> ^D
> another possible solution is to use tkeclipse. But how can I load new
> predicates in a ECLiPSe "session" opened by C/C++ API?
> 
> Best regards,
> Giuseppe
> 
> ----------------------------------------------------------------------------
> Giuseppe Di Guglielmo       Dept. of Computer Science - University of
> Verona 
>                                Strada le Grazie, 15 - 37134 Verona - Italy
> 
Hi Giuseppe,

You can call compile/1 from your C/C++ code to compile a file with the 
ECLiPSe code you want.

Cheers,

Kish

-- 
This e-mail may contain confidential and privileged material for the
sole use of the intended recipient. Any review, use, distribution or
disclosure by others is strictly prohibited. If you are not the intended
recipient (or authorized to receive for the recipient), please contact
the sender by reply e-mail and delete all copies of this message.
Cisco Systems Limited (Company Number: 02558939), is registered in
England and Wales with its registered office at 1 Callaghan Square,
Cardiff, South Glamorgan CF10 5BT.
Received on Fri Oct 17 2008 - 02:34:26 CEST

This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:20 CEST