package org.shedlang.compiler.shid.instructions; import org.shedlang.compiler.sources.Source; /** * Pop a value from the temporary value stack, and assume it is a Bool. If it is * true, execute the "true" body, otherwise execute the "false" body. *
* Each branch body should push resultCount values onto the
* temporary value stack.
*/
public record ShidIf(
int resultCount,
ShidBlock trueBody,
ShidBlock falseBody,
Source source
) implements ShidInstruction {
@Override
public boolean isBlockTerminator() {
return false;
}
}