JEXL – A simple expression evaluation engine

When I was developing a framework looking for a solution very similar to eval() function in JavaScript. Initially I thought of Velocity but somehow I wasn’t convinced with that approach. (Struts2 uses Velocity to externalize the HTML generation to make it customizable). Later I wrote my own parser to evaluate an expression that returns a Boolean value. Recently I found an open source which exactly meets my requirement. I don’t have to talk much about this open source you can find lot more information in their website. I thought it might be useful to others as well.
Reference: http://commons.apache.org/jexl/

4 Responses to JEXL – A simple expression evaluation engine

  1. Mohan says:

    your own parser? seems quite intersting, could you blog about it?

    Writing simple or complex parsers – always fun. I never did.

  2. Mohan says:

    Hey!
    if you use scripengine library, Why do you need parser?
    Mohan

  3. Kaouni says:

    If you are looking for a simple expression evaluation, I found one at http://expressionoasis.vedantatree.com/. It is simply for mathematical and object expressions, and easy to use. Like I created a calculator using it.

  4. Instead search engines, marketers, and even your ISP see only
    the VPN server. A green arrow indicates the services for RRS is enabled.

    Restrictive firewalls block VPN connections, and if you have this, then the use of a SSL VPN protocol is needed.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: