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

import org.shedlang.compiler.sources.Source;

/**
 * Pop a tuple from the temporary value stack, get the element at the given
 * index, and push it onto the temporary value stack.
 */
public record ShidTupleGet(
    int elementIndex,
    int elementCount,
    Source source
) implements ShidInstruction {
    @Override
    public boolean isBlockTerminator() {
        return false;
    }
}