函数定义#
Parse#
详细描述#
Parse(code string, opts ...Option) (*Program, error)
参数名 | 参数类型 | 参数解释 |
---|
code | string | |
opts | ...Option | |
返回值#
返回值(顺序) | 返回值类型 | 返回值解释 |
---|
r1 | *Program | |
r2 | error | |
withExternLib#
详细描述#
withExternLib(name string, table map[string]any) Option
参数名 | 参数类型 | 参数解释 |
---|
name | string | |
table | map[string]any | |
返回值#
返回值(顺序) | 返回值类型 | 返回值解释 |
---|
r1 | Option | |
withExternValue#
详细描述#
withExternValue(table map[string]any) Option
参数名 | 参数类型 | 参数解释 |
---|
table | map[string]any | |
返回值#
返回值(顺序) | 返回值类型 | 返回值解释 |
---|
r1 | Option | |
withLanguage#
详细描述#
withLanguage(language Language) Option
参数名 | 参数类型 | 参数解释 |
---|
language | Language | |
返回值#
返回值(顺序) | 返回值类型 | 返回值解释 |
---|
r1 | Option | |