aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Execution/ControlFlowResult.php
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/ControlFlowResult.php
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/ControlFlowResult.php')
-rw-r--r--src/Execution/ControlFlowResult.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Execution/ControlFlowResult.php b/src/Execution/ControlFlowResult.php
new file mode 100644
index 0000000..1b995d9
--- /dev/null
+++ b/src/Execution/ControlFlowResult.php
@@ -0,0 +1,20 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\Execution;
+
+use Nsfisis\Waddiwasi\Structure\Types\LabelIdx;
+
+abstract readonly class ControlFlowResult
+{
+ final public static function Br(LabelIdx $label): ControlFlowResults\Br
+ {
+ return new ControlFlowResults\Br($label);
+ }
+
+ final public static function Return(): ControlFlowResults\Return_
+ {
+ return new ControlFlowResults\Return_();
+ }
+}