com.github.leeonky.interpreter.Clause Maven / Gradle / Ivy
The newest version!
package com.github.leeonky.interpreter;
public interface Clause> {
N expression(N input);
default int getOperandPosition(N input) {
return expression(input).getOperandPosition();
}
default Clause merge(Clause another) {
return input -> another.expression(expression(input));
}
}