labels

package
v0.0.0-...-e95280a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2021 License: MIT Imports: 3 Imported by: 0

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

func NewAdapter

func NewAdapter() Adapter

NewAdapter creates a new adapter instance

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

func NewBuilder

func NewBuilder() Builder

NewBuilder creates a new builder instance

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL