aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/shedlang/compiler/shid/instructions/ShidIntGreaterThan.java
blob: 111fa77567eee190a816958963ea79296663f90e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 greater than the right operand.
/// 4. Push the result onto the temporary value stack.
public record ShidIntGreaterThan(Source source) implements ShidInstruction {
    @Override
    public boolean isBlockTerminator() {
        return false;
    }
}