Examples of CalcContext


Examples of org.commonlib.parser.CalcContext

  public static void main(String[] args)
  {
    try
    {
      ContextParser parser = new ContextParser();
      CalcContext context = new CalcContext();

      context.put("raggio", 100);
      context.put("diametro", "raggio*2");
      context.put("arco", 25);
      context.put("altezza", 700);

      String toParse =
         "circonferenza= 2 * pi()*raggio\n"+
         "areacerchio=pi()*(raggio^2)\n"+
         "lunarco=circonferenza*arco/360\n"+
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.