You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stephen S. Mitchell edited this page Apr 25, 2026
·
4 revisions
Namespace: AlibreScript.API
Kind: Class
Methods
Compile
Compiles C# code
defCompile(code):
"""Compiles C# codeArgs:code (str): Code to compileReturns:Compiled code object"""
CompileAndRun
Compiles and runs C# code
Overload 1:
defCompileAndRun(code):
"""Compiles and runs C# codeArgs:code (str): Code to compile and runReturns:Updated dictionary of variables"""
Overload 2:
defCompileAndRun(code, variables):
"""Compiles and runs C# codeArgs:code (str): Code to compile and runvariables (IronPython.Runtime.PythonDictionary): Dictionary of variablesReturns:Updated dictionary of variables"""
Run
Runs compiled C# code
Overload 1:
defRun(script):
"""Runs compiled C# codeArgs:script (Microsoft.CodeAnalysis.Scripting.Script{System.Object[]}): Compiled code object to runReturns:Updated dictionary of variables"""
Overload 2:
defRun(script, variables):
"""Runs compiled C# codeArgs:script (Microsoft.CodeAnalysis.Scripting.Script{System.Object[]}): Compiled code object to runvariables (IronPython.Runtime.PythonDictionary): Dictionary of variables or None for no variablesReturns:Updated dictionary of variables"""