aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Structure/Instructions/Instrs/Control/BrTable.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Structure/Instructions/Instrs/Control/BrTable.php')
-rw-r--r--src/Structure/Instructions/Instrs/Control/BrTable.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Structure/Instructions/Instrs/Control/BrTable.php b/src/Structure/Instructions/Instrs/Control/BrTable.php
new file mode 100644
index 0000000..57a08f3
--- /dev/null
+++ b/src/Structure/Instructions/Instrs/Control/BrTable.php
@@ -0,0 +1,20 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\Structure\Instructions\Instrs\Control;
+
+use Nsfisis\Waddiwasi\Structure\Instructions\Instr;
+use Nsfisis\Waddiwasi\Structure\Types\LabelIdx;
+
+final readonly class BrTable extends Instr
+{
+ /**
+ * @param list<LabelIdx> $labelTable
+ */
+ public function __construct(
+ public array $labelTable,
+ public LabelIdx $defaultLabel,
+ ) {
+ }
+}