Menu

Expr4J: Parser not working well all expressio

2009-11-05
2013-04-03
  • Akshay Shrigadi

    Akshay Shrigadi - 2009-11-05

    Hi All,

    Lately I've been trying out few options for parsing and evaluation of the expressions with a mix of standard and domain specific custom functions with the ability to set the dependencies dynamically.
    One of the issues I found with the parser was it was not taking into account negative values in the expressions like in the following expression:

    *(2.0 + Max(2,5,6)* -1)*

    It creates a Expr with null value on parsing the above expression.
    something like the following:

    *(2.0 + Max(2,5,6)*null -1)*

    Smith / Anyone can you please take a note of this and please get back with a proper release with this issue taken care of?

     
  • Peter Smith

    Peter Smith - 2009-11-08

    Hi,

    I've run a unit test with the above text and the current parser and it works fine (result is 7.0).

    Regards,
    Peter

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.