aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Execution/ExternVals
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-01-27 13:22:56 +0900
committernsfisis <nsfisis@gmail.com>2024-02-26 11:07:06 +0900
commit900377463a8264871ee42e488112b076b7973b6a (patch)
treebf727d3484ca7c8d35f18ef29ea8d9305d4b57da /src/Execution/ExternVals
parente2495878b872b341e6e04eed31dd255b1a6e256f (diff)
downloadphp-waddiwasi-900377463a8264871ee42e488112b076b7973b6a.tar.gz
php-waddiwasi-900377463a8264871ee42e488112b076b7973b6a.tar.zst
php-waddiwasi-900377463a8264871ee42e488112b076b7973b6a.zip
feat: partially implement execution
Diffstat (limited to 'src/Execution/ExternVals')
-rw-r--r--src/Execution/ExternVals/Func.php16
-rw-r--r--src/Execution/ExternVals/Global_.php16
-rw-r--r--src/Execution/ExternVals/Mem.php16
-rw-r--r--src/Execution/ExternVals/Table.php16
4 files changed, 64 insertions, 0 deletions
diff --git a/src/Execution/ExternVals/Func.php b/src/Execution/ExternVals/Func.php
new file mode 100644
index 0000000..314d44d
--- /dev/null
+++ b/src/Execution/ExternVals/Func.php
@@ -0,0 +1,16 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\Execution\ExternVals;
+
+use Nsfisis\Waddiwasi\Execution\ExternVal;
+use Nsfisis\Waddiwasi\Execution\FuncAddr;
+
+final readonly class Func extends ExternVal
+{
+ protected function __construct(
+ public FuncAddr $addr,
+ ) {
+ }
+}
diff --git a/src/Execution/ExternVals/Global_.php b/src/Execution/ExternVals/Global_.php
new file mode 100644
index 0000000..ae38c78
--- /dev/null
+++ b/src/Execution/ExternVals/Global_.php
@@ -0,0 +1,16 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\Execution\ExternVals;
+
+use Nsfisis\Waddiwasi\Execution\ExternVal;
+use Nsfisis\Waddiwasi\Execution\GlobalAddr;
+
+final readonly class Global_ extends ExternVal
+{
+ protected function __construct(
+ public GlobalAddr $addr,
+ ) {
+ }
+}
diff --git a/src/Execution/ExternVals/Mem.php b/src/Execution/ExternVals/Mem.php
new file mode 100644
index 0000000..7bded5a
--- /dev/null
+++ b/src/Execution/ExternVals/Mem.php
@@ -0,0 +1,16 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\Execution\ExternVals;
+
+use Nsfisis\Waddiwasi\Execution\ExternVal;
+use Nsfisis\Waddiwasi\Execution\MemAddr;
+
+final readonly class Mem extends ExternVal
+{
+ protected function __construct(
+ public MemAddr $addr,
+ ) {
+ }
+}
diff --git a/src/Execution/ExternVals/Table.php b/src/Execution/ExternVals/Table.php
new file mode 100644
index 0000000..cd36bb2
--- /dev/null
+++ b/src/Execution/ExternVals/Table.php
@@ -0,0 +1,16 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\Execution\ExternVals;
+
+use Nsfisis\Waddiwasi\Execution\ExternVal;
+use Nsfisis\Waddiwasi\Execution\TableAddr;
+
+final readonly class Table extends ExternVal
+{
+ protected function __construct(
+ public TableAddr $addr,
+ ) {
+ }
+}