Click or drag to resize

IMacroCompiler.Compile Method

X#
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

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: ICodeblock
A compiled codeblock
See Also