Retrieving a list of bindings for an interpreter.

"Igor Hjelmstrom Vinhas Ribeiro" <[email protected]> Mon, 2 Jun 2008 08:43:52 -0400
Newsgroups gmane.comp.java.sisc.user
Message-ID <[email protected]>
Hello!

   I could not figure out from the documentation at

 http://sisc-scheme.org/manual/javadoc/

   how I can get a list of bindings for a given interpreter. I looked
at Interpreter,
Context, AppContext and several other classes. It would be nice if anyone
could point me in the right direction.

As an example, suppose I have the following code:

  sisc.interpreter.Context.getDefaultAppContext();
  sisc.interpreter.Interpreter siscInterpreter =
  sisc.interpreter.Context.enter(sisc.interpreter.Context.getDefaultAppContext());
  siscInterpreter.eval(
    "(define data 123)"+
    "(define moredata (cons 1 'a)"
  );		

  I want to find some way of retrieving and using in the Java side a set of
name-value pairs which in this case would include data and moredata along with
their values. I wouldn't mind if other bindings where there together
with them...

Regards,
 Igor.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/