From c84b76d3848b089cbdd5650b894067fbf6060161 Mon Sep 17 00:00:00 2001 From: Elias Haugsbakk Date: Sun, 20 Sep 2026 23:02:49 +0200 Subject: Implement the record interpretation in asm construction and implement variables --- .../eliashaugsbakk/kompilator/IRGeneration/Instructions/Call.java | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/main/java/no/eliashaugsbakk/kompilator/IRGeneration/Instructions/Call.java (limited to 'src/main/java/no/eliashaugsbakk/kompilator/IRGeneration/Instructions/Call.java') diff --git a/src/main/java/no/eliashaugsbakk/kompilator/IRGeneration/Instructions/Call.java b/src/main/java/no/eliashaugsbakk/kompilator/IRGeneration/Instructions/Call.java new file mode 100644 index 0000000..98f816c --- /dev/null +++ b/src/main/java/no/eliashaugsbakk/kompilator/IRGeneration/Instructions/Call.java @@ -0,0 +1,8 @@ +package no.eliashaugsbakk.kompilator.IRGeneration.Instructions; + +import java.util.List; + +// call a function: skriv("hello"); +// Call("skriv", ["t1"]) +public record Call(String fn, List args) implements Instruction { +} -- cgit v1.2.3