Boolean Expression Evaluation?

I'm reposting Aftershock s answer to your question the first time you posted it, since it was a good answer and it didn't deserve to be deleted: You have to write a small interpreter. There are many ways to do it . Here is one.

Here is pattern for it: en.wikipedia.org/wiki/Interpreter_pattern This can help too: ryanfarley.com/blog/archive/2004/08/19/9... That is about the intersection of data ranges but the problem is similar You may also use an operator precedense parser: en.wikipedia.org/wiki/Operator-precedenc....

I'm reposting Aftershock's answer to your question the first time you posted it, since it was a good answer and it didn't deserve to be deleted: You have to write a small interpreter. There are many ways to do it . Here is one.

Here is pattern for it: en.wikipedia.org/wiki/Interpreter_pattern This can help too: ryanfarley.com/blog/archive/2004/08/19/9... That is about the intersection of data ranges but the problem is similar. You may also use an operator precedense parser: en.wikipedia.org/wiki/Operator-precedenc....

JUEL provides an implementation of Java's Unified Expression Language without being explicitly tied to JSP. Here's its Quick Start guide, expression evaluation (#3 on that page) is the part you're interested in. Alternatively, Spring 3.0 provides its own (though somewhat similar) expression language.

This option only makes sense if you're already using Spring, though - I wouldn't pull it in just for EL.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions