Documentation ¶
Index ¶
- func Compile(s string) ([]byte, error)
- func Lookup(t interface{}, v string) (ret interface{})
- type Assembler
- type Assembly
- type BBAsm
- func (t *BBAsm) AST() *node32
- func (t *BBAsm) Add(rule pegRule, begin, end, depth uint32, index int)
- func (p *BBAsm) AddAssembly() Assembly
- func (p *BBAsm) AddComment()
- func (p *BBAsm) AddInteger()
- func (p *BBAsm) AddOperand(direct bool)
- func (p *BBAsm) AddPseudoDataValue()
- func (t *BBAsm) Error() []token32
- func (p *BBAsm) Execute()
- func (t *BBAsm) Expand(index int)
- func (p *BBAsm) Highlighter()
- func (p *BBAsm) Init()
- func (t *BBAsm) Order() [][]token32
- func (p *BBAsm) Pop() interface{}
- func (t *BBAsm) PreOrder() (<-chan state32, [][]token32)
- func (t *BBAsm) Print()
- func (t *BBAsm) PrintSyntax()
- func (p *BBAsm) PrintSyntaxTree()
- func (p *BBAsm) Push(v interface{})
- func (p *BBAsm) PushInst(op bbasm.Opcode)
- func (t *BBAsm) Tokens() <-chan token32
- type Comment
- type Label
- type PseudoBlock
- type PseudoData
- type PseudoDataValue
- type Symbol
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Assembly ¶
type BBAsm ¶
type BBAsm struct { Buffer string Parse func(rule ...int) error Reset func() Pretty bool // contains filtered or unexported fields }
func (*BBAsm) AddAssembly ¶
func (p *BBAsm) AddAssembly() Assembly
func (*BBAsm) AddComment ¶
func (p *BBAsm) AddComment()
func (*BBAsm) AddInteger ¶
func (p *BBAsm) AddInteger()
func (*BBAsm) AddOperand ¶
func (p *BBAsm) AddOperand(direct bool)
func (*BBAsm) AddPseudoDataValue ¶
func (p *BBAsm) AddPseudoDataValue()
func (*BBAsm) Highlighter ¶
func (p *BBAsm) Highlighter()
func (*BBAsm) PrintSyntax ¶
func (t *BBAsm) PrintSyntax()
func (*BBAsm) PrintSyntaxTree ¶
func (p *BBAsm) PrintSyntaxTree()
type PseudoBlock ¶
func (PseudoBlock) Assembly ¶
func (a PseudoBlock) Assembly() string
func (*PseudoBlock) GetComment ¶
func (a *PseudoBlock) GetComment() string
func (*PseudoBlock) Len ¶
func (a *PseudoBlock) Len() int
func (*PseudoBlock) MarshalBinary ¶
func (a *PseudoBlock) MarshalBinary() (data []byte, err error)
func (*PseudoBlock) SetComment ¶
func (a *PseudoBlock) SetComment(v string)
type PseudoData ¶
type PseudoData struct { Label string Values []PseudoDataValue Line int Comment string }
func (PseudoData) Assembly ¶
func (a PseudoData) Assembly() string
func (*PseudoData) GetComment ¶
func (a *PseudoData) GetComment() string
func (*PseudoData) Len ¶
func (a *PseudoData) Len() int
func (PseudoData) MarshalBinary ¶
func (a PseudoData) MarshalBinary() (data []byte, err error)
func (*PseudoData) SetComment ¶
func (a *PseudoData) SetComment(v string)
type PseudoDataValue ¶
type PseudoDataValue interface { encoding.BinaryMarshaler Len() int // Byte length Assembly() string // Assembly represent }
Click to show internal directories.
Click to hide internal directories.