feat: update structure

This commit is contained in:
2024-01-22 14:27:40 +08:00
parent 7836c9185c
commit 3544a28a2e
559 changed files with 120846 additions and 4102 deletions

View File

@@ -0,0 +1,25 @@
/**
* Represents the Not type, a conditional which inverts the given input.
*/
class Not implements Cond {
private Cond val;
public Not(Cond val) {
this.val = val;
}
@Override
public boolean eval() {
return !this.val.eval();
}
@Override
public String toString() {
return "!(" + this.val + ")";
}
@Override
public Cond neg() {
return this.val;
}
}