serene-simple/src/main/java/serene/simple/NilNode.java

17 lines
254 B
Java

package serene.simple;
public class NilNode extends Node {
public boolean isTruthy = false;
@Override
public Object eval(Scope scope) {
return this;
}
@Override
public String toString() {
return "nil";
}
}