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

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

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

  2. Mohan

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

  3. Kaouni

    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 comment

I’m Venkat

A passionate software engineer with over 20 years of experience in the tech industry. Welcome to my digital playground where I share my journey through the ever-evolving world of software development and cloud technologies!