Documentation ¶
Index ¶
- func BasmLine2Text(bline *BasmLine) (string, error)
- func FilterMatcher(m *BasmLine, filterType string) bool
- func MatchArg(m *BasmElement, l *BasmElement) bool
- func MatchMatcher(m *BasmLine, l *BasmLine) bool
- func MatchMeta(m *BasmElement, l *BasmElement) bool
- type BasmBody
- func (body *BasmBody) CheckArg(arg *BasmElement) bool
- func (body *BasmBody) Copy() *BasmBody
- func (op *BasmBody) Flat() string
- func (body *BasmBody) NextResource(res *BasmElement) *BasmElement
- func (body *BasmBody) PrefixMeta(prefix *BasmElement)
- func (body *BasmBody) PrefixValue(prefix *BasmElement)
- func (body *BasmBody) ReplaceArg(s *BasmElement, t *BasmElement)
- func (body *BasmBody) String() string
- type BasmElement
- type BasmLine
- type ByName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasmLine2Text ¶
func FilterMatcher ¶
func MatchArg ¶
func MatchArg(m *BasmElement, l *BasmElement) bool
func MatchMatcher ¶
func MatchMeta ¶
func MatchMeta(m *BasmElement, l *BasmElement) bool
Match if two second argument has a subset of metadata of the first
Types ¶
type BasmBody ¶
func (*BasmBody) CheckArg ¶
func (body *BasmBody) CheckArg(arg *BasmElement) bool
func (*BasmBody) NextResource ¶
func (body *BasmBody) NextResource(res *BasmElement) *BasmElement
func (*BasmBody) PrefixMeta ¶
func (body *BasmBody) PrefixMeta(prefix *BasmElement)
Change the meta data of the BasmBody recursively adding the prefix to every existing key in prefix
func (*BasmBody) PrefixValue ¶
func (body *BasmBody) PrefixValue(prefix *BasmElement)
Change the value of the BasmBody recursively adding the prefix to every existing matching value
func (*BasmBody) ReplaceArg ¶
func (body *BasmBody) ReplaceArg(s *BasmElement, t *BasmElement)
type BasmElement ¶
func (*BasmElement) Copy ¶
func (el *BasmElement) Copy() *BasmElement
Create a copy of the BasmElement
func (*BasmElement) Flat ¶
func (op *BasmElement) Flat() string
func (*BasmElement) GetValue ¶
func (be *BasmElement) GetValue() string
func (*BasmElement) SetValue ¶
func (be *BasmElement) SetValue(val string)
func (*BasmElement) String ¶
func (el *BasmElement) String() string
type BasmLine ¶
type BasmLine struct { *bmmeta.BasmMeta Operation *BasmElement Elements []*BasmElement }
func Text2BasmLine ¶
Click to show internal directories.
Click to hide internal directories.