Documentation
¶
Index ¶
- func ReadInput() []string
- type Computer
- func (c *Computer) Cpy(src int64, dst string)
- func (c *Computer) Dec(register string)
- func (c *Computer) Inc(register string)
- func (c *Computer) Jnz(value int64, count int64)
- func (c *Computer) Mul(x, y int64, dst string)
- func (c *Computer) Out(value int64)
- func (c *Computer) Run(program [][]string)
- func (c *Computer) SetRegister(register string, value int64)
- func (c *Computer) String() string
- func (c *Computer) Tgl(offset int64)
- type Letters
- type StringWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Computer ¶
type Computer struct {
Stdin chan int64
Stdout chan int64
// contains filtered or unexported fields
}
func NewComputer ¶
func NewComputer() *Computer
func (*Computer) SetRegister ¶
type Letters ¶
type Letters struct {
// contains filtered or unexported fields
}
func NewLetters ¶
func NewLetters() *Letters
type StringWriter ¶
type StringWriter struct {
// contains filtered or unexported fields
}
func (*StringWriter) String ¶
func (s *StringWriter) String() string
func (*StringWriter) WriteByte ¶
func (s *StringWriter) WriteByte(b byte) error
func (*StringWriter) Writef ¶
func (s *StringWriter) Writef(format string, args ...interface{})
Click to show internal directories.
Click to hide internal directories.