Skip to main content

ssa

成员函数函数描述/介绍
ssa.Parse
ssa.withExternLib
ssa.withExternValue
ssa.withLanguage

函数定义#

Parse#

详细描述#

定义#

Parse(code string, opts ...Option) (*Program, error)

参数#

参数名参数类型参数解释
codestring
opts...Option

返回值#

返回值(顺序)返回值类型返回值解释
r1*Program
r2error

withExternLib#

详细描述#

定义#

withExternLib(name string, table map[string]any) Option

参数#

参数名参数类型参数解释
namestring
tablemap[string]any

返回值#

返回值(顺序)返回值类型返回值解释
r1Option

withExternValue#

详细描述#

定义#

withExternValue(table map[string]any) Option

参数#

参数名参数类型参数解释
tablemap[string]any

返回值#

返回值(顺序)返回值类型返回值解释
r1Option

withLanguage#

详细描述#

定义#

withLanguage(language Language) Option

参数#

参数名参数类型参数解释
languageLanguage

返回值#

返回值(顺序)返回值类型返回值解释
r1Option