bond

package
v0.0.0-...-dca90b2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(expres []*parser.SExpre, nj *ninja.Ninja) error

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

func (Context) AddVariable

func (ctx Context) AddVariable(ident string, val interface{})

func (Context) ConvGlobal

func (ctx Context) ConvGlobal(expres []*parser.SExpre) error

func (Context) GetVariable

func (ctx Context) GetVariable(ident string) (interface{}, error)

type NArchive

type NArchive struct {
	// contains filtered or unexported fields
}

func (*NArchive) GetExport

func (np *NArchive) GetExport() []string

func (*NArchive) GetType

func (na *NArchive) GetType() string

func (*NArchive) RunGenerate

func (np *NArchive) RunGenerate(nj *ninja.Ninja) error

type NBianry

type NBianry struct {
	// contains filtered or unexported fields
}

func (*NBianry) GetExport

func (np *NBianry) GetExport() []string

func (*NBianry) GetType

func (nf *NBianry) GetType() string

func (*NBianry) RunGenerate

func (np *NBianry) RunGenerate(nj *ninja.Ninja) error

type NFile

type NFile struct {
	// contains filtered or unexported fields
}

func (*NFile) GetExport

func (nf *NFile) GetExport() []string

func (*NFile) GetType

func (nf *NFile) GetType() string

c : c lang souce asm : assembler souce library : ar, achive object : elf, relocatable file program : elf, executable file

func (*NFile) RunGenerate

func (nf *NFile) RunGenerate(nj *ninja.Ninja) error

type NObject

type NObject struct {
	// contains filtered or unexported fields
}

func (*NObject) GetExport

func (no *NObject) GetExport() []string

func (*NObject) GetType

func (nf *NObject) GetType() string

func (*NObject) RunGenerate

func (no *NObject) RunGenerate(nj *ninja.Ninja) error

type NProgram

type NProgram struct {
	// contains filtered or unexported fields
}

func (*NProgram) GetExport

func (np *NProgram) GetExport() []string

func (*NProgram) GetType

func (nf *NProgram) GetType() string

func (*NProgram) RunGenerate

func (np *NProgram) RunGenerate(nj *ninja.Ninja) error

type Node

type Node interface {
	GetType() string
	GetExport() []string
	RunGenerate(nj *ninja.Ninja) error
}

type Option

type Option struct {
	// contains filtered or unexported fields
}

可以是这四种基本类型 : int64, float64, string, Node 也可以是上面这四种类型的数组, 不支持数组嵌套.

func NewOption

func NewOption() *Option

func (*Option) AddField

func (opt *Option) AddField(key string, val interface{})

func (*Option) DelField

func (opt *Option) DelField(key string)

func (*Option) ExpectNodeArray

func (opt *Option) ExpectNodeArray(key string, rm bool) ([]Node, error)

func (*Option) ExpectStrArray

func (opt *Option) ExpectStrArray(key string, rm bool) ([]string, error)

期望是 string 数组, 但是如果是 string 类型, 自动转换成只有一个元素的数组.

func (*Option) ExpectString

func (opt *Option) ExpectString(key string, rm bool) (string, error)

rm 是否删除这个 field

func (*Option) GetField

func (opt *Option) GetField(key string) (interface{}, error)

Jump to

Keyboard shortcuts

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