feat: change up organisation

This commit is contained in:
2023-04-24 11:02:37 +08:00
parent 13f372ec5a
commit dd56398b7d
378 changed files with 4653 additions and 107 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;
}
}