simple language interpreter to call Java methods (rules engines)

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top