diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-02-26 13:21:22 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-03-03 15:27:26 +0900 |
| commit | 996259e6a1a04f91179d2b83cc19e3fbb371cd33 (patch) | |
| tree | 14ccabf37cc909c8c61899ffb84429fdeb8dfce0 /src/Execution/StackEntry.php | |
| parent | 8a789bffe72e93ae24ea39648018e5fecf94c7fa (diff) | |
| download | php-waddiwasi-996259e6a1a04f91179d2b83cc19e3fbb371cd33.tar.gz php-waddiwasi-996259e6a1a04f91179d2b83cc19e3fbb371cd33.tar.zst php-waddiwasi-996259e6a1a04f91179d2b83cc19e3fbb371cd33.zip | |
feat: implement some of instructions
Diffstat (limited to 'src/Execution/StackEntry.php')
| -rw-r--r-- | src/Execution/StackEntry.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Execution/StackEntry.php b/src/Execution/StackEntry.php index 8a9d7dd..ec2fe7a 100644 --- a/src/Execution/StackEntry.php +++ b/src/Execution/StackEntry.php @@ -4,9 +4,7 @@ declare(strict_types=1); namespace Nsfisis\Waddiwasi\Execution; -use Nsfisis\Waddiwasi\Structure\Instructions\Instr; - -abstract readonly class StackEntry +abstract class StackEntry { final public static function Value(Val $inner): StackEntries\Value { @@ -15,13 +13,11 @@ abstract readonly class StackEntry /** * @param int<0, max> $arity - * @param list<Instr> $target */ final public static function Label( int $arity, - array $target, ): StackEntries\Label { - return new StackEntries\Label($arity, $target); + return new StackEntries\Label($arity); } /** |
