aboutsummaryrefslogtreecommitdiff
path: root/hobgoblin/src/patio/operands.hob
blob: 5a8769f72e7f162bf13e985505d68ebcd64c07c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import {PatioDataPtrValue, PatioIntValue} from ./values;

sum PatioOperand {
    variant PatioLocalRef;
    variant PatioBoolConst;
    variant PatioByteConst;
    variant PatioDataPtrConst;
    variant PatioFunctionPtrConst;
    variant PatioInt32Const;
    variant PatioIntConst;
}

struct PatioLocalRef {
    field name: String;
}

struct PatioBoolConst {
    field value: Bool;
}

struct PatioByteConst {
    field value: Int8;
}

struct PatioDataPtrConst {
    field value: PatioDataPtrValue;
}

struct PatioFunctionPtrConst {
    field name: String;
}

struct PatioInt32Const {
    field value: PatioIntValue;
}

struct PatioIntConst {
    field value: PatioIntValue;
}