package org.shedlang.compiler.shid.instructions; import org.shedlang.compiler.sources.Source; import java.util.List; /** * Execute the instructions, potentially leaving values on the temporary value * stack. */ public record ShidBlock( List boundVariables, List instructions, Source source ) implements ShidInstruction { @Override public boolean isBlockTerminator() { return instructions.stream().anyMatch(ShidInstruction::isBlockTerminator); } }