Name

SPVM::Stack - Call Stack

Description

SPVM::Stack is the Stack class in the SPVM language.

The instance is a call stack. It has information of the call stack.

An instance of the Stack class is build by the new_stack method in the Env class.

Usage

use Stack;

my $stack = $env->new_stack;

Pointer

The Stack class is a pointer class.

Its insntace has a pointer to an object of the SPVM_VALUE type.

Fields

env

has env : ro Env;

An executable environemnt. The field type is the Env class.

Instance Methods

DESTROY

method DESTROY : void ();

The destructor.

See Also

Env

The new_stack method in the Env class builds a call stack.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License