blob: 588b3fb04f411443fb2506f41775a0ece803bd79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package org.shedlang.compiler.patio.operands;
import org.shedlang.compiler.patio.types.PatioType;
import org.shedlang.compiler.patio.types.PatioTypes;
import org.shedlang.compiler.patio.values.PatioDataPtrValue;
import org.shedlang.compiler.patio.values.PatioDataPtrValueDataElement;
public record PatioDataPtrConst(PatioDataPtrValue value) implements PatioOperandConst {
public static PatioDataPtrConst dataElement(String name) {
return new PatioDataPtrConst(new PatioDataPtrValueDataElement(name));
}
@Override
public PatioType type() {
return PatioTypes.DATA_PTR;
}
}
|