bmline

package
v0.0.0-...-3be6dbe Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasmLine2Text

func BasmLine2Text(bline *BasmLine) (string, error)

func FilterMatcher

func FilterMatcher(m *BasmLine, filterType string) bool

func MatchArg

func MatchArg(m *BasmElement, l *BasmElement) bool

func MatchMatcher

func MatchMatcher(m *BasmLine, l *BasmLine) bool

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

type BasmBody struct {
	*bmmeta.BasmMeta
	Lines []*BasmLine
}

func (*BasmBody) CheckArg

func (body *BasmBody) CheckArg(arg *BasmElement) bool

func (*BasmBody) Copy

func (body *BasmBody) Copy() *BasmBody

func (*BasmBody) Flat

func (op *BasmBody) Flat() string

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)

func (*BasmBody) String

func (body *BasmBody) String() string

type BasmElement

type BasmElement struct {
	*bmmeta.BasmMeta
	// contains filtered or unexported fields
}

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

func Text2BasmLine(line string) (*BasmLine, error)

func (*BasmLine) Copy

func (line *BasmLine) Copy() *BasmLine

func (*BasmLine) Flat

func (line *BasmLine) Flat() string

func (*BasmLine) String

func (line *BasmLine) String() string

type ByName

type ByName []*BasmElement

func (ByName) Len

func (s ByName) Len() int

func (ByName) Less

func (s ByName) Less(i, j int) bool

func (ByName) Swap

func (s ByName) Swap(i, j int)

Jump to

Keyboard shortcuts

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