IMacroCompiler.Compile 方法 | |
Compile a string into a runtime codeblock.
命名空间:
XSharp
程序集:
XSharp.Core (在 XSharp.Core.dll 中) 版本:2.22 GA
语法 METHOD Compile(
macro AS STRING,
lAllowSingleQuotes AS LOGIC,
module AS Module,
isCodeblock OUT LOGIC,
addsMemVars OUT LOGIC
) AS ICodeblock
ICodeblock Compile(
string macro,
bool lAllowSingleQuotes,
Module module,
out bool isCodeblock,
out bool addsMemVars
)
参数
- macro
- 类型:String
String to compile - lAllowSingleQuotes
- 类型:Boolean
Should single quotes be allowed - module
- 类型:Module
Module of the main app - isCodeblock
- 类型:Boolean
will be set to TRUE when the string was a real codeblock (with {|..| }). - addsMemVars
- 类型:Boolean
will be set to TRUE when the macro contains code that may result in adding new MemVars).
返回值
类型:
ICodeblockA compiled codeblock
参见