Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instruction ¶
func Parse ¶
func Parse(s string) (Instruction, error)
func (Instruction) IsValid ¶
func (i Instruction) IsValid() bool
func (Instruction) String ¶
func (i Instruction) String() string
type Machine ¶
type Machine struct {
// contains filtered or unexported fields
}
func NewMachine ¶
func NewMachine(is []Instruction) *Machine
func (*Machine) ExecOneLoop ¶
Click to show internal directories.
Click to hide internal directories.