KmnCompiler.init() method
Home > @keymanapp/kmc-kmn > KmnCompiler > init
KmnCompiler.init() method
Initialize the compiler, including loading the WASM host for kmcmplib. Copies options.
Signature:
init(callbacks: CompilerCallbacks, options: KmnCompilerOptions): Promise<boolean>;
Parameters
Parameter | Type | Description |
---|---|---|
callbacks | CompilerCallbacks | Callbacks for external interfaces, including message reporting and file io |
options | KmnCompilerOptions | Compiler options |
Returns:
Promise<boolean>
false if initialization fails