element.version === currentVersion)) { versionNodes.unshift({ version: currentVersion, url: "#" }); } document.querySelector("#project-version").innerHTML = versionNodes.reduce( (acc, element) => { const status = currentVersion === element.version ? "selected disabled" : ""; return ` ${acc} `; }, `
gen_core_erlang · v0.5.1

Generate Core Erlang from Gleam

The result of any call is a single Core Erlang in-memory term. The intention of this library is that you compose these terms to construct a Core Erlang module, which you subsequently compile, load and run.

Wraps around the cerl module of the compiler application. Adds type safety of Gleam by wrapping the c_erl() type. Note: if you are programming Erlang, rather than using this package, use cerl directly.

This package specifically does not generate Core Erlang text and/or file.

Usage

See the tests for code examples.

Maturity

Not all Core Erlang terms can be generated ,yet (see TODO.md), but some moderately complex code can be generated.

Search Document