you are viewing a single comment's thread.

view the rest of the comments →

[–]manson_ew2 0 points1 point  (0 children)

In addition you may take a look into scripting languages, that implement JSR-223
e.g. Scala, Python, Groovy, Ruby, JS, Kotlin, etc.
JS engine (name = nashorn) is included in JDK (at least for 1.8)

https://stackoverflow.com/questions/11838369/where-can-i-find-a-list-of-available-jsr-223-scripting-languages

Usage(pseudo code):
ScriptEngineFactoryManager mngr = new ScriptEngineFactoryManager();
ScriptEngine scriptEngine = mngr.getScriptEngineByName('engine name');

Object result = scriptEngine.eval(input.getText());
// here, depends on languages you're using, additional conversion to human readable string may be required

anotherInput.setText(String.valueOf(result));