Documentation ¶
Index ¶
- Variables
- type BFProgram
- func (p *BFProgram) AppendCommand(cmd rune)
- func (p *BFProgram) AppendCommands(cmds ...rune)
- func (p *BFProgram) Clone() *BFProgram
- func (p *BFProgram) CreateILTree() *il.ILBlock
- func (p *BFProgram) PrintProgram(outio io.Writer)
- func (p *BFProgram) ReadCommands(in io.Reader)
- func (p *BFProgram) Reset()
- func (p *BFProgram) Run() error
- func (p *BFProgram) RunStep() (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDataPtr = errors.New("Error: Data pointer moved out of bounds (off the beginning)")
View Source
var ErrJumpLocationExceedsCommands = errors.New("Error: Jump location exceeds command locations")
View Source
var ErrReadError = errors.New("Error: Received read error during runtime")
View Source
var ErrUnknownCommand = errors.New("Error: Unknown command in program execution")
View Source
var ErrWriteError = errors.New("Error: Received write error during runtime")
Functions ¶
This section is empty.
Types ¶
type BFProgram ¶
type BFProgram struct {
// contains filtered or unexported fields
}
BFProgram represents an active program state for a BF program using the the native and unoptimized BF commands.
func NewBFProgram ¶
func NewIOBFProgram ¶
func (*BFProgram) AppendCommand ¶
func (*BFProgram) AppendCommands ¶
func (*BFProgram) CreateILTree ¶
func (*BFProgram) PrintProgram ¶
func (*BFProgram) ReadCommands ¶
Click to show internal directories.
Click to hide internal directories.