C
C B
I am looking for simple language interpreters to be able to be plugged
into Java, that could call real Java methods.
JESS appears to be able to do so with a lisp like language.
Rete r = new Rete();
r.executeCommand("(deffunction square (?n) (return (* ?n ?n)))");
Value v = r.executeCommand("(square 3)");
// Prints '9'
System.out.println(v.intValue(r.getGlobalContext()));
It would be cool to be able to do this with the JSP 2.0 Expression
Language (EL). However looking at
http://jakarta.apache.org/commons/el/api/index.html it doesn't appear
clear how to do this, or if it was intended to be used by itself (with
out JSPs...).
Is there a set of Javascript Java classes that I could plug in?
Any other suggestions for rules engines?
into Java, that could call real Java methods.
JESS appears to be able to do so with a lisp like language.
Rete r = new Rete();
r.executeCommand("(deffunction square (?n) (return (* ?n ?n)))");
Value v = r.executeCommand("(square 3)");
// Prints '9'
System.out.println(v.intValue(r.getGlobalContext()));
It would be cool to be able to do this with the JSP 2.0 Expression
Language (EL). However looking at
http://jakarta.apache.org/commons/el/api/index.html it doesn't appear
clear how to do this, or if it was intended to be used by itself (with
out JSPs...).
Is there a set of Javascript Java classes that I could plug in?
Any other suggestions for rules engines?