diff options
Diffstat (limited to 'src/Structure/Instructions/Expr.php')
| -rw-r--r-- | src/Structure/Instructions/Expr.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/Structure/Instructions/Expr.php b/src/Structure/Instructions/Expr.php new file mode 100644 index 0000000..ceefcc0 --- /dev/null +++ b/src/Structure/Instructions/Expr.php @@ -0,0 +1,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; + } +} |
