added first steps on pbs pipeline

This commit is contained in:
2026-03-24 13:42:16 +00:00
parent 176a3f7587
commit 801109b993
41 changed files with 13804 additions and 6 deletions
@@ -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;
}
}
@@ -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) {
}