Table of Contents

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

chunk string

The Luau source code to compile.

options LuauCompileOptions

Optional compilation options.

Returns

LuauChunk

A LuauChunk containing the compiled bytecode.

Exceptions

ArgumentNullException

Thrown if the input chunk is null.

LuauException

Thrown if compilation fails or an unexpected error occurs.