Class LuauCompiler
- Namespace
- LuauInterop.Compilation
- Assembly
- LuauInterop.dll
Provides functionality to compile Luau source code into bytecode chunks.
public static class LuauCompiler
- Inheritance
-
LuauCompiler
- Inherited Members
Methods
Compile(string, LuauCompileOptions?)
Compiles a Luau source code chunk into a LuauChunk containing the bytecode.
public static LuauChunk Compile(string chunk, LuauCompileOptions? options = null)
Parameters
chunkstringThe Luau source code to compile.
optionsLuauCompileOptionsOptional compilation options.
Returns
Exceptions
- ArgumentNullException
Thrown if the input chunk is null.
- LuauException
Thrown if compilation fails or an unexpected error occurs.