aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Execution/Nums
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/Nums
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/Nums')
-rw-r--r--src/Execution/Nums/F32_.php18
-rw-r--r--src/Execution/Nums/F64_.php18
-rw-r--r--src/Execution/Nums/I32.php18
-rw-r--r--src/Execution/Nums/I64.php18
4 files changed, 72 insertions, 0 deletions
diff --git a/src/Execution/Nums/F32_.php b/src/Execution/Nums/F32_.php
new file mode 100644
index 0000000..5c7b749
--- /dev/null
+++ b/src/Execution/Nums/F32_.php
@@ -0,0 +1,18 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\Execution\Nums;
+
+use Nsfisis\Waddiwasi\Execution\Num;
+
+final readonly class F32_ extends Num
+{
+ /**
+ * @param F32 $value
+ */
+ public function __construct(
+ public float $value,
+ ) {
+ }
+}
diff --git a/src/Execution/Nums/F64_.php b/src/Execution/Nums/F64_.php
new file mode 100644
index 0000000..c24709e
--- /dev/null
+++ b/src/Execution/Nums/F64_.php
@@ -0,0 +1,18 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\Execution\Nums;
+
+use Nsfisis\Waddiwasi\Execution\Num;
+
+final readonly class F64_ extends Num
+{
+ /**
+ * @param F64 $value
+ */
+ public function __construct(
+ public float $value,
+ ) {
+ }
+}
diff --git a/src/Execution/Nums/I32.php b/src/Execution/Nums/I32.php
new file mode 100644
index 0000000..fbc6fab
--- /dev/null
+++ b/src/Execution/Nums/I32.php
@@ -0,0 +1,18 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\Execution\Nums;
+
+use Nsfisis\Waddiwasi\Execution\Num;
+
+final readonly class I32 extends Num
+{
+ /**
+ * @param S32 $value
+ */
+ public function __construct(
+ public int $value,
+ ) {
+ }
+}
diff --git a/src/Execution/Nums/I64.php b/src/Execution/Nums/I64.php
new file mode 100644
index 0000000..889b863
--- /dev/null
+++ b/src/Execution/Nums/I64.php
@@ -0,0 +1,18 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\Execution\Nums;
+
+use Nsfisis\Waddiwasi\Execution\Num;
+
+final readonly class I64 extends Num
+{
+ /**
+ * @param S64 $value
+ */
+ public function __construct(
+ public int $value,
+ ) {
+ }
+}