aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Execution/ControlFlowResults
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-02-26 13:21:22 +0900
committernsfisis <nsfisis@gmail.com>2024-03-03 15:27:26 +0900
commit996259e6a1a04f91179d2b83cc19e3fbb371cd33 (patch)
tree14ccabf37cc909c8c61899ffb84429fdeb8dfce0 /src/Execution/ControlFlowResults
parent8a789bffe72e93ae24ea39648018e5fecf94c7fa (diff)
downloadphp-waddiwasi-996259e6a1a04f91179d2b83cc19e3fbb371cd33.tar.gz
php-waddiwasi-996259e6a1a04f91179d2b83cc19e3fbb371cd33.tar.zst
php-waddiwasi-996259e6a1a04f91179d2b83cc19e3fbb371cd33.zip
feat: implement some of instructions
Diffstat (limited to 'src/Execution/ControlFlowResults')
-rw-r--r--src/Execution/ControlFlowResults/Br.php16
-rw-r--r--src/Execution/ControlFlowResults/Return_.php14
2 files changed, 30 insertions, 0 deletions
diff --git a/src/Execution/ControlFlowResults/Br.php b/src/Execution/ControlFlowResults/Br.php
new file mode 100644
index 0000000..8ca7ff3
--- /dev/null
+++ b/src/Execution/ControlFlowResults/Br.php
@@ -0,0 +1,16 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\Execution\ControlFlowResults;
+
+use Nsfisis\Waddiwasi\Execution\ControlFlowResult;
+use Nsfisis\Waddiwasi\Structure\Types\LabelIdx;
+
+final readonly class Br extends ControlFlowResult
+{
+ protected function __construct(
+ public LabelIdx $label,
+ ) {
+ }
+}
diff --git a/src/Execution/ControlFlowResults/Return_.php b/src/Execution/ControlFlowResults/Return_.php
new file mode 100644
index 0000000..a9e0885
--- /dev/null
+++ b/src/Execution/ControlFlowResults/Return_.php
@@ -0,0 +1,14 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\Execution\ControlFlowResults;
+
+use Nsfisis\Waddiwasi\Execution\ControlFlowResult;
+
+final readonly class Return_ extends ControlFlowResult
+{
+ protected function __construct()
+ {
+ }
+}