Documentation ¶
Overview ¶
Package steps provides facilities to represent and build collections of steps.
Index ¶
- type JSON
- type Program
- func (self *Program) Add(opcode ...shared.Opcode)
- func (self *Program) AddProgram(otherProgram Program)
- func (self Program) IsEmpty() bool
- func (self Program) MarshalJSON() ([]byte, error)
- func (self Program) OpcodeTypes() []string
- func (self Program) Peek() shared.Opcode
- func (self *Program) Pop() shared.Opcode
- func (self *Program) Prepend(other ...shared.Opcode)
- func (self *Program) PrependProgram(otherProgram Program)
- func (self Program) RemoveAllButLast(removeType string) Program
- func (self Program) String() string
- func (self Program) StringIndented(indent string) string
- func (self *Program) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSON ¶
JSON is used to store an opcode in JSON.
func (*JSON) MarshalJSON ¶
MarshalJSON marshals the opcode to JSON.
func (*JSON) UnmarshalJSON ¶
UnmarshalJSON unmarshals the opcode from JSON.
type Program ¶
Program is a mutable collection of Opcodes.
func (*Program) AddProgram ¶
AppendProgram adds all elements of the given Program to the end of this Program.
func (Program) MarshalJSON ¶
MarshalJSON marshals this program to JSON.
func (Program) OpcodeTypes ¶
OpcodeTypes provides the names of the types of the opcodes in this program.
func (*Program) PrependProgram ¶
PrependProgram adds all elements of the given program to the start of this program.
func (Program) RemoveAllButLast ¶
func (Program) StringIndented ¶
func (*Program) UnmarshalJSON ¶
UnmarshalJSON unmarshals the program from JSON.
Click to show internal directories.
Click to hide internal directories.