IMacroCompiler.Compile Method | |
Compile a string into a runtime codeblock.
Namespace:
XSharp
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax 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
)
Parameters
- macro
- Type: String
String to compile - lAllowSingleQuotes
- Type: Logic
Should single quotes be allowed - module
- Type: Module
Module of the main app - isCodeblock
- Type: Logic
will be set to TRUE when the string was a real codeblock (with {|..| }). - addsMemVars
- Type: Logic
will be set to TRUE when the macro contains code that may result in adding new MemVars).
Return Value
Type:
ICodeblockA compiled codeblock
See Also