mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-28 09:28:04 +00:00
update records
This commit is contained in:
commit
658083d615
6
src/main/java/de/maishai/ast/UnaryOperator.java
Normal file
6
src/main/java/de/maishai/ast/UnaryOperator.java
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
package de.maishai.ast;
|
||||||
|
|
||||||
|
public enum UnaryOperator {
|
||||||
|
SUB,
|
||||||
|
NOT
|
||||||
|
}
|
7
src/main/java/de/maishai/ast/records/Unary.java
Normal file
7
src/main/java/de/maishai/ast/records/Unary.java
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
package de.maishai.ast.records;
|
||||||
|
|
||||||
|
|
||||||
|
import de.maishai.ast.UnaryOperator;
|
||||||
|
|
||||||
|
public record Unary(UnaryOperator op, Expression right) implements Expression {
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user