aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/shedlang/compiler/shid/instructions/ShidLoop.java
blob: 2394e88b31d37a839d1d8ef5b5163780673d4a56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package org.shedlang.compiler.shid.instructions;


import org.shedlang.compiler.sources.Source;

/**
 * Execute the body. The <code>continue</code> instruction can jump back to the
 * start of the body. The <code>break</code> instruction can jump to the end of
 * the body.
 */
public record ShidLoop(
    ShidBlock body,
    Source source
) implements ShidInstruction {
    @Override
    public boolean isBlockTerminator() {
        return false;
    }
}