SPVM::Env - Execution Environment
SPVM::Env is the Env class in the SPVM language.
SPVM::Env
Env
The instance is an execution environemnt. It has the Native APIs and the data of class variables.
An instance of the Env class is build by the build_env method in the Runtime class.
A call stack is build by the build_stack method in this class.
use Env; my $env = $runtime->build_env; my $stack = $env->build_stack;
The Env class is a pointer class.
Its insntace has a pointer to an object of the SPVM_ENV type.
has runtime : ro Runtime;
A runtime. The field type is the Runtime class.
method set_command_info : void ($program_name : string, $argv : string[]);
Sets command line information.
method call_init_blocks : void ();
Calls all INIT blocks.
method build_stack : Stack ();
Builds a call stack and returns it.
The return type is the Stack class.
method DESTROY : void ();
The destructor.
The build_runtime method in the Runtime class builds an executable environement.
The instance of the Stack class is build by the "build_stack" method in this class.
Copyright 2023-2023 Yuki Kimoto, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install SPVM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM
CPAN shell
perl -MCPAN -e shell install SPVM
For more information on module installation, please visit the detailed CPAN module installation guide.