From: Ken A. <kan...@bb...> - 2004-11-19 20:50:52
|
I've accepted a patch from Alan Donovan. 1 - easier embedding: Evaluator eval = new Evaluator(); eval.setInput(...); eval.setOutput(...); eval.setError(...); jsint.Scheme.pushEvaluator(eval); jsint.Scheme.loadInit(); eval.enableNamedResults(true); eval.readEvalWriteLoop("scheme> "); The loop returns #t if it hit EOF or #f it it was asked to exit. 2. The value of each evaluation is kept in a variable, like $3 for the third evaluation. This is currently on by default. 3. I have removed the code for leadin 0 or 0x in numbers so 081 is 81, and adjusted the tests. If (set! U.useJavaSyntax #f) you can do #o10 and #x10 however. |