aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Structure/Instructions/Expr.php
blob: ceefcc04acc582f56a0954eb6ecccf92870ac375 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

declare(strict_types=1);

namespace Nsfisis\Waddiwasi\Structure\Instructions;

final readonly class Expr
{
    /**
     * @var non-empty-list<Instr>
     */
    public array $instrs;

    /**
     * @param list<Instr> $instrs
     */
    public function __construct(
        array $instrs,
    ) {
        $instrs[] = Instr::End();
        $this->instrs = $instrs;
    }
}