PolyglotEngine

The Polyglot Engine is responsible for creating new PolyglotContext instances, as well as triggering events that allow plugins to extend the runtime.

Engine instances can be created using the PolyglotEngine DSL, which provides methods to configure and extend the engine by installing plugins.

The acquire function can be used to obtain a new PolyglotContext configured by the engine.

Functions

Link copied to clipboard
abstract fun acquire(cfg: Context.Builder.() -> Unit = {}): PolyglotContext

Acquire a new PolyglotContext. The returned context has all plugins applied on creation.

Link copied to clipboard
abstract fun unwrap(): Engine