turing

package
v0.0.0-...-0235693 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Half

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

type Inc

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

type Instruction

type Instruction interface{}

func ParseInstruction

func ParseInstruction(s string) (Instruction, error)

type Jump

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

type JumpIfEven

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

type JumpIfOdd

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

type Machine

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

func NewMachine

func NewMachine(is []Instruction) *Machine

func (*Machine) Run

func (m *Machine) Run()

type Triple

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

Jump to

Keyboard shortcuts

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