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.