Money Lover v8.14.0.6版本的 MD5 值为:48b9d922212c7ccfd438cdcc183ff396
以下内容为反编译后的 CommandlineInterpreter.java 源代码,内容仅作参考
package de.congrace.exp4j;
public class CommandlineInterpreter {
private static void calculateExpression(String str) {
try {
System.out.println(new ExpressionBuilder(str).build().calculate());
} catch (UnknownFunctionException e10) {
e10.printStackTrace();
} catch (UnparsableExpressionException e11) {
e11.printStackTrace();
}
}
public static void main(String[] strArr) {
if (strArr.length != 1) {
printUsage();
} else {
calculateExpression(strArr[0]);
}
}
private static void printUsage() {
System.err.println("Commandline Expression Parser\n\nExample: \njava -jar exp4j.jar \"2.12 * log(23) * (12 - 4)\"\n\nwritten by fas@congrace.de");
}
}