package instructions
import "shirakumo.org/markless/instructions"
This package holds type representations for components.Instruction s. Typically you will only interact with the Constructor s of this package to assemble valid instructions in the parser.
Index
- func NewDisable() directives.InstructionType
- func NewEnable() directives.InstructionType
- func NewError() directives.InstructionType
- func NewInclude() directives.InstructionType
- func NewInfo() directives.InstructionType
- func NewLabel() directives.InstructionType
- func NewRaw() directives.InstructionType
- func NewSet() directives.InstructionType
- type Constructor
- type Disable
- type Enable
- type Error
- type Include
- type Info
- type Label
- type Raw
- type Set
Functions
func NewDisable
func NewDisable() directives.InstructionType
func NewEnable
func NewEnable() directives.InstructionType
func NewError
func NewError() directives.InstructionType
func NewInclude
func NewInclude() directives.InstructionType
func NewInfo
func NewInfo() directives.InstructionType
func NewLabel
func NewLabel() directives.InstructionType
func NewRaw
func NewRaw() directives.InstructionType
func NewSet
func NewSet() directives.InstructionType
Types
type Constructor
type Constructor func() directives.InstructionType
type Disable
type Disable struct{}
func (*Disable) Create
func (i *Disable) Create(arguments string) *components.Instruction
func (*Disable) Execute
func (i *Disable) Execute(c *components.Instruction, p directives.Parser)
func (*Disable) Name
func (i *Disable) Name() string
type Enable
type Enable struct{}
func (*Enable) Create
func (i *Enable) Create(arguments string) *components.Instruction
func (*Enable) Execute
func (i *Enable) Execute(c *components.Instruction, p directives.Parser)
func (*Enable) Name
func (i *Enable) Name() string
type Error
type Error struct{}
func (*Error) Create
func (i *Error) Create(arguments string) *components.Instruction
func (*Error) Execute
func (i *Error) Execute(c *components.Instruction, p directives.Parser)
func (*Error) Name
func (i *Error) Name() string
type Include
type Include struct{}
func (*Include) Create
func (i *Include) Create(arguments string) *components.Instruction
func (*Include) Execute
func (i *Include) Execute(c *components.Instruction, p directives.Parser)
func (*Include) Name
func (i *Include) Name() string
type Info
type Info struct{}
func (*Info) Create
func (i *Info) Create(arguments string) *components.Instruction
func (*Info) Execute
func (i *Info) Execute(c *components.Instruction, p directives.Parser)
func (*Info) Name
func (i *Info) Name() string
type Label
type Label struct{}
func (*Label) Create
func (i *Label) Create(arguments string) *components.Instruction
func (*Label) Execute
func (i *Label) Execute(c *components.Instruction, p directives.Parser)
func (*Label) Name
func (i *Label) Name() string
type Raw
type Raw struct{}
func (*Raw) Create
func (i *Raw) Create(arguments string) *components.Instruction
func (*Raw) Execute
func (i *Raw) Execute(c *components.Instruction, p directives.Parser)
func (*Raw) Name
func (i *Raw) Name() string
type Set
type Set struct{}
func (*Set) Create
func (i *Set) Create(arguments string) *components.Instruction
func (*Set) Execute
func (i *Set) Execute(c *components.Instruction, p directives.Parser)
func (*Set) Name
func (i *Set) Name() string