Documentation ¶
Index ¶
- func Convert(expres []*parser.SExpre, nj *ninja.Ninja) error
- type Context
- type NArchive
- type NBianry
- type NFile
- type NObject
- type NProgram
- type Node
- type Option
- func (opt *Option) AddField(key string, val interface{})
- func (opt *Option) DelField(key string)
- func (opt *Option) ExpectNodeArray(key string, rm bool) ([]Node, error)
- func (opt *Option) ExpectStrArray(key string, rm bool) ([]string, error)
- func (opt *Option) ExpectString(key string, rm bool) (string, error)
- func (opt *Option) GetField(key string) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (Context) AddVariable ¶
func (Context) GetVariable ¶
type NFile ¶
type NFile struct {
// contains filtered or unexported fields
}
type Option ¶
type Option struct {
// contains filtered or unexported fields
}
可以是这四种基本类型 : int64, float64, string, Node 也可以是上面这四种类型的数组, 不支持数组嵌套.
func (*Option) ExpectNodeArray ¶
func (*Option) ExpectStrArray ¶
期望是 string 数组, 但是如果是 string 类型, 自动转换成只有一个元素的数组.
func (*Option) ExpectString ¶
rm 是否删除这个 field
Click to show internal directories.
Click to hide internal directories.