Package org.matsim.contrib.parking.parkingchoice.lib.utils.expr

This package contains an apdapted version of the parser, implemented by Darius Bacon. For more information about the original code, see: https://github.com/darius/expr

Package Maintainer(s):

  • Rashid Waraich
Simple usage: Parser parser=new Parser("x+y^2"); parser.setVariable("x", 1); parser.setVariable("y", 2); double result=parser.parse(); Notes: Same parser can be used multiple times with different variable assignment. Changes by non-maintainers are strictly prohibited.