/jep

Fork of Java Expression Parser (JEP)

Primary LanguageJavaGNU General Public License v2.0GPL-2.0

This is a fork of the excellent Java Expression Parser (JEP) based on JEP 2.23.

The main changes are:

  • Ability to override basic arithmetic operators (e.g., +, -, *, /). In order to do so, just use

    parser.addFunction("\"+\"", new CustomAdd());
  • Conformance to Java 7

In order to build it, just launch a terminal and issue ./compile.sh. There is also a possibly outdated Ant script, but I didn't test it.

For more information on usage, refer to the author's website: http://www.cse.msu.edu/SENS/Software/jep-2.23/doc/website/index.html.