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

import org.shedlang.compiler.sources.Source;

import java.util.List;

/// Execute the body. The `continue` instruction can jump back to the
/// start of the body. The `break` instruction can jump to the end of
/// the body.
public record PatioLoop(
    List<PatioInstruction> body,
    Source source
) implements PatioInstruction {
    @Override
    public boolean isBlockTerminator() {
        return false;
    }
}