pointer

package
v0.0.0-...-8cde130 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: EUPL-1.2 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultCharacterInput

func DefaultCharacterInput() (int, error)

func DefaultCharacterOutput

func DefaultCharacterOutput(c int)

func DefaultDecimalInput

func DefaultDecimalInput() (int, error)

func DefaultDecimalOutput

func DefaultDecimalOutput(c int)

Types

type InputFunction

type InputFunction func() (int, error)

type OutputFunction

type OutputFunction func(v int)

type Pointer

type Pointer struct {

	// The next element for the multi-"threaded" b98 interpreter
	Next *Pointer
	// The input/output functions
	CharacterInput  InputFunction
	DecimalInput    InputFunction
	CharacterOutput OutputFunction
	DecimalOutput   OutputFunction
	// command line arguments
	Argv []string
	// contains filtered or unexported fields
}

func NewPointer

func NewPointer() *Pointer

func (*Pointer) CalculateNewStorageOffset

func (p *Pointer) CalculateNewStorageOffset()

func (*Pointer) Exec

func (p *Pointer) Exec(f *field.Field) (done bool, returnValue *int)

func (Pointer) Get

func (p Pointer) Get(f field.Field) int

func (Pointer) GetStorageOffset

func (p Pointer) GetStorageOffset() (x, y int)

func (*Pointer) Redirect

func (p *Pointer) Redirect(c int) bool

func (*Pointer) RedirectTo

func (p *Pointer) RedirectTo(dx, dy int)

func (*Pointer) Reverse

func (p *Pointer) Reverse()

func (*Pointer) Set

func (p *Pointer) Set(x, y int)

func (*Pointer) SetStorageOffset

func (p *Pointer) SetStorageOffset(x, y int)

func (Pointer) Split

func (p Pointer) Split() *Pointer

func (*Pointer) Step

func (p *Pointer) Step(f field.Field)

func (*Pointer) StepAndGet

func (p *Pointer) StepAndGet(f field.Field) int

type StackStack

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

func NewStackStack

func NewStackStack() *StackStack

func (*StackStack) Begin

func (ss *StackStack) Begin(p *Pointer)

func (*StackStack) End

func (ss *StackStack) End(p *Pointer) (reflect bool)

func (StackStack) GetHeights

func (s StackStack) GetHeights() []int

func (*StackStack) Pop

func (ss *StackStack) Pop() int

func (*StackStack) Push

func (ss *StackStack) Push(v int)

func (*StackStack) Under

func (ss *StackStack) Under() (reflect bool)

func (*StackStack) YCommandPick

func (s *StackStack) YCommandPick(n int, h int)

Jump to

Keyboard shortcuts

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