aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/shedlang/compiler/shid/instructions/ShidIntSub.java
blob: 63a0cd0765bc65e04f3be5971b2ea10eda02a70b (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 the left operand minus the right operand.
/// 4. Push the result onto the temporary value stack.
public record ShidIntSub(Source source) implements ShidInstruction {
    @Override
    public boolean isBlockTerminator() {
        return false;
    }
}