From 8b689c5ff077252a68c88bc7d70990405fc8dd5a Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 3 Mar 2024 21:01:46 +0900 Subject: feat: implement more instructions --- src/Structure/Instructions/Instrs/Parametric/Drop.php | 4 ++++ src/Structure/Instructions/Instrs/Parametric/Select.php | 5 +++++ 2 files changed, 9 insertions(+) (limited to 'src/Structure/Instructions/Instrs/Parametric') diff --git a/src/Structure/Instructions/Instrs/Parametric/Drop.php b/src/Structure/Instructions/Instrs/Parametric/Drop.php index 7513014..69a3fc1 100644 --- a/src/Structure/Instructions/Instrs/Parametric/Drop.php +++ b/src/Structure/Instructions/Instrs/Parametric/Drop.php @@ -8,4 +8,8 @@ use Nsfisis\Waddiwasi\Structure\Instructions\Instr; final readonly class Drop extends Instr { + public static function opName(): string + { + return "drop"; + } } diff --git a/src/Structure/Instructions/Instrs/Parametric/Select.php b/src/Structure/Instructions/Instrs/Parametric/Select.php index dd09ef3..10d6c8c 100644 --- a/src/Structure/Instructions/Instrs/Parametric/Select.php +++ b/src/Structure/Instructions/Instrs/Parametric/Select.php @@ -16,4 +16,9 @@ final readonly class Select extends Instr public array $types, ) { } + + public static function opName(): string + { + return "select"; + } } -- cgit v1.2.3-70-g09d2