aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/shedlang/compiler/shid/instructions/ShidIntLessThanOrEqual.java
blob: 5c51359e341fe6678adb8b8afcb31942b4810312 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package org.shedlang.compiler.shid.instructions;

import org.shedlang.compiler.sources.Source;

/// 1. Pop the right operand from the temporary value stack.
/// 2. Pop the left operand from the temporary value stack.
/// 3. Calculate whether the left operand is less than or equal to the right
///    operand.
/// 4. Push the result onto the temporary value stack.
public record ShidIntLessThanOrEqual(Source source) implements ShidInstruction {
    @Override
    public boolean isBlockTerminator() {
        return false;
    }
}