bytecode

package
v0.0.0-...-3974014 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bytecode

type Bytecode struct {
	// contains filtered or unexported fields
}

Bytecode is responsible for keep the instructions.

func New

func New() *Bytecode

New creates a new bytecode.

func (*Bytecode) Add

func (bc *Bytecode) Add(item int, op int)

Add adds a new opcode to the bytecode.

func (*Bytecode) Get

func (bc *Bytecode) Get(index int) (int, error)

Get returns the opcode at a specific index.

func (*Bytecode) Len

func (bc *Bytecode) Len() int

Len returns the bytecode length.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL