Are there any good open source expression engines for java? I am not looking for a rules engine (which implement conditionals and logic).
I want to be able to define a number of "facts" and dynamically generate expressions based on these facts.
For example:
Say I have facts such as:
Lemons=$5
IceCubes=$1
Cups=$2
Water=$1.50
I want to be able to dynamically define an expression:
COSTPERPITCHER=3 * LEMONS + ICECUBES + WATER
and
COSTPERCUP = COSTPERPITCHER / 25 + CUPS
I'd like to be able to store these expressions in a database or created dynamically.