From: Timothy J. H. <ti...@cs...> - 2004-05-20 18:19:37
|
We've taken Jonathan's request and renamed the modified JS.java to JScheme.java. The old JS.java has been reinstated (with appropriate modifications) so as to be backward compatible (and it works on my old code.) So, to use the new approach you create a new interpreter ... > import jscheme.JScheme; > > JScheme js = new JScheme(); and then proceed as before: > System.out.println(js.call("Date.")); > js.eval("(use-module \"elf/basic.scm\" 'import 'all \"elf:\")"); > System.out.println(js.call("describe", new java.util.Date()); > > The old JS works as before and uses a single static jscheme.JScheme instance. ---Tim--- |