[eclipse-users] C++/C and variables

From: <schugk_at_...18...>
Date: Mon, 20 Nov 2006 20:24:35 +0100
Hi,
I wrote a short program in order to show you my problem. 

#include <eclipseclass.h>
int main()
{
  ec_init();

  post_goal("compile_term(a(X):- X = [A,A,B])");
  EC_resume();

  EC_ref X;
  EC_functor a("a",1);
  post_goal(term(a,X));
  EC_resume();

  { .... parsing X .... }

  ec_cleanup();
  return 0;
}

After the goal a(X) was processed the reference X points to a list
of 3 variables. How can i retrieve identifiers like _887 or _A from
unreferenced variables? I don't want to use 'ec_exec_string' and
'ec_var_lookup'. Any solution in C or C++ would be very helpful. 

Thanks!
Received on Mon Nov 20 2006 - 19:24:45 CET

This archive was generated by hypermail 2.3.0 : Tue Apr 16 2024 - 09:13:19 CEST