lib

package
v0.0.0-...-728f111 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2014 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Tab   = '\t'
	Space = ' '
	Lf    = '\n'
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

func (*Command) String

func (c *Command) String() string

type CommandList

type CommandList map[int]*Command

func (*CommandList) Add

func (l *CommandList) Add(c *Command)

func (*CommandList) Clear

func (l *CommandList) Clear()

func (*CommandList) Get

func (l *CommandList) Get(n int) *Command

func (*CommandList) Len

func (l *CommandList) Len() int

func (*CommandList) Search

func (l *CommandList) Search(cmd *Command) (int, error)

type Heap

type Heap map[int]int

func (*Heap) Pop

func (h *Heap) Pop(k int) int

func (*Heap) Push

func (h *Heap) Push(k, v int)

type Interpreter

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

func NewInterpreter

func NewInterpreter(data []byte) *Interpreter

func (*Interpreter) PrintChar

func (inter *Interpreter) PrintChar()

func (*Interpreter) PrintCode

func (inter *Interpreter) PrintCode()

func (*Interpreter) Run

func (inter *Interpreter) Run()

type Stack

type Stack []int

func (*Stack) Copy

func (s *Stack) Copy(n int) error

func (*Stack) Move

func (s *Stack) Move(n int) error

func (*Stack) Pop

func (s *Stack) Pop() int

func (*Stack) Push

func (s *Stack) Push(n int)

func (*Stack) Swap

func (s *Stack) Swap() error

Jump to

Keyboard shortcuts

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