Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface {
ToLabel(parsed parsers.LabelCommand) (Label, error)
}
Adapter represents an adapter
type Builder ¶
type Builder interface { Create() Builder WithName(name string) Builder WithVariable(variable string) Builder WithInstructions(ins []Instruction) Builder Now() (Label, error) }
Builder represents a label builder
type Instruction ¶
type Instruction interface { Instruction() label_instruction.Instruction HasScopes() bool Scopes() []bool }
Instruction represents a label instruction
type InstructionBuilder ¶
type InstructionBuilder interface { Create() InstructionBuilder WithInstruction(ins label_instruction.Instruction) InstructionBuilder WithScopes(scopes []bool) InstructionBuilder Now() (Instruction, error) }
InstructionBuilder represents a label instruction builder
func NewInstructionBuilder ¶
func NewInstructionBuilder() InstructionBuilder
NewInstructionBuilder creates a new instruction builder
type Label ¶
type Label interface { Name() string Variable() string Instructions() []Instruction }
Label represents a label command
Click to show internal directories.
Click to hide internal directories.