lib

package
v0.0.0-...-decaf7c Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 Filter

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

func NewFilter

func NewFilter(words []string) *Filter

func (*Filter) Filter

func (self *Filter) Filter(target string) (ret map[int]string)

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(org string) *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