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

17 lines
381 B
Java
Raw Normal View History

package serene.simple;
public abstract class Node {
2019-12-14 02:42:25 +00:00
public boolean isTruthy = true;
public abstract Object eval(Scope scope);
2019-12-14 22:05:53 +00:00
public boolean equals(Node n) {
return this == n;
}
public String toString() {
String className = this.getClass().getName();
return String.format("%s<%s>", className, System.identityHashCode(this));
}
}