added first steps on pbs pipeline
This commit is contained in:
+15
@@ -1,4 +1,19 @@
|
||||
package p.studio.compiler.models;
|
||||
|
||||
import p.studio.utilities.structures.ReadOnlyList;
|
||||
|
||||
public class IRBackend {
|
||||
private final ReadOnlyList<IRFunction> functions;
|
||||
|
||||
public IRBackend() {
|
||||
this(ReadOnlyList.empty());
|
||||
}
|
||||
|
||||
public IRBackend(final ReadOnlyList<IRFunction> functions) {
|
||||
this.functions = functions == null ? ReadOnlyList.empty() : functions;
|
||||
}
|
||||
|
||||
public ReadOnlyList<IRFunction> getFunctions() {
|
||||
return functions;
|
||||
}
|
||||
}
|
||||
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
package p.studio.compiler.models;
|
||||
|
||||
import p.studio.compiler.source.Span;
|
||||
import p.studio.compiler.source.identifiers.FileId;
|
||||
|
||||
public record IRFunction(
|
||||
FileId fileId,
|
||||
String name,
|
||||
int parameterCount,
|
||||
boolean hasExplicitReturnType,
|
||||
Span span) {
|
||||
}
|
||||
Reference in New Issue
Block a user