Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
simple-vm
v0.4.0
Closure
Op
Scope
TypeChecker
Types
BaseValidType
ValidType
VM
Built with Crystal 1.9.2
2023-10-08 14:41:49 UTC
class
VM
VM
Reference
Object
Defined in:
vm.cr
Constructors
.new
(bytecode : Array(Int32 | Op), memory : Array(ValidType), scope : Scope | Nil =
nil
)
Instance Method Summary
#bytecode
: Array(Int32 | Op)
#memory
: Array(ValidType)
#run
Runs each opcode
#stack
: Array(ValidType)
Constructor Detail
def self.
new
(bytecode : Array(Int32 |
Op
), memory : Array(
ValidType
), scope :
Scope
| Nil =
nil
)
#
[
View source
]
Instance Method Detail
def
bytecode
: Array(Int32 |
Op
)
#
[
View source
]
def
memory
: Array(
ValidType
)
#
[
View source
]
def
run
#
Runs each opcode
[
View source
]
def
stack
: Array(
ValidType
)
#
[
View source
]