instruction

package
v0.0.0-...-e95280a Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter interface {
	ToInstruction(instruction parsers.Instruction) (Instruction, error)
}

Adapter represents the instruction adapter

func NewAdapter

func NewAdapter() Adapter

NewAdapter creates a new adapter instance

type Builder

type Builder interface {
	Create() Builder
	WithStackframe(stackframe stackframe.Stackframe) Builder
	WithCondition(condition condition.Condition) Builder
	WithStandard(standard standard.Standard) Builder
	WithRemaining(remaining remaining.Remaining) Builder
	WithValue(value value.Value) Builder
	WithInsert(insert var_variable.Variable) Builder
	WithSave(save var_variable.Variable) Builder
	WithDelete(del string) Builder
	WithCall(call call.Call) Builder
	WithModule(module module.Module) Builder
	WithExit(exit exit.Exit) Builder
	WithRegistry(reg registry.Registry) Builder
	Now() (Instruction, error)
}

Builder represents an instruction builder

func NewBuilder

func NewBuilder() Builder

NewBuilder creates a new builder instance

type Instruction

type Instruction interface {
	IsStackframe() bool
	Stackframe() stackframe.Stackframe
	IsCondition() bool
	Condition() condition.Condition
	IsStandard() bool
	Standard() standard.Standard
	IsRemaining() bool
	Remaining() remaining.Remaining
	IsValue() bool
	Value() value.Value
	IsInsert() bool
	Insert() var_variable.Variable
	IsSave() bool
	Save() var_variable.Variable
	IsDelete() bool
	Delete() string
	IsCall() bool
	Call() call.Call
	IsModule() bool
	Module() module.Module
	IsExit() bool
	Exit() exit.Exit
	IsRegistry() bool
	Registry() registry.Registry
}

Instruction represents an instruction

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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