package no.eliashaugsbakk.kompilator.parsing.node.expression; import java.util.List; import no.eliashaugsbakk.kompilator.parsing.Type; /** * Represents a function call statement (e.g., print("Hello, world")). */ public class FunctionCall extends Expression { public final String functionName; public final List arguments; public FunctionCall(String functionName, List arguments) { this.functionName = functionName; this.arguments = arguments; } public Type getReturnType() { if (functionName.equals("skriv")) { return new Type("void", false); } // TODO: Look up return type in function table when you add more functions return null; } }