jaskell.expression.Add Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jaskell-java8 Show documentation
Show all versions of jaskell-java8 Show documentation
This is a utils library for java 8 project.
It include parsec combinators and sql generators library.
package jaskell.expression;
/**
* TODO
*
* @author mars
* @version 1.0.0
* @since 2020/06/04 10:57
*/
public class Add extends Binary {
public Add(Expression left, Expression right) {
this.left = left;
this.right = right;
}
@Override
public double eval(Env env) throws ExpressionException {
return left.eval(env) + right.eval(env);
}
@Override
public int getPriority() {
return 1;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy