Re: [Mathlib-develop] Scripting engine proposal
Status: Beta
Brought to you by:
st_mueller
From: Stefan M. <st...@he...> - 2004-06-05 11:27:20
|
Alejandro Torras wrote: > Hi, > > The other day I downloaded jEdit (http://www.jedit.org/) and I saw that > it uses an scripting called bean shell. > I looked the main page (http://www.beanshell.org/) and it looks very > impressive: it can understand Java source (plain text) and compiled code > without problems. > > I think we could incorporate it to the core. > > What do you think about? Hi Alejandro, we already have a java shell integrated in JMathLib. The function "java" in MathLib/Functions/System/Java.java will do the job. java('console.displayText("hello world");') hello world ans = null To access a JMathLib variable enter x=5 JAVA('global.getVariable("x");') ans = 5 Kind regards, Stefan. ------------------------------------ Dr.-Ing. Stefan Mueller email: St...@he... ------------------------------------ |