Per.Compiler (per v5.3.21)

Copy Markdown

Main entry point for the Per compiler.

Summary

Functions

Compiles a Per module from source string.

Finds the file path for a module name.

Loads a compiled binary into the Erlang VM.

Loads a module by name into the environment.

Resolves and loads all imported modules.

Functions

compile_module(source, opts \\ [])

Compiles a Per module from source string.

find_module_path(mod_name, syntax \\ :lean)

Finds the file path for a module name.

load_module(mod, bin)

Loads a compiled binary into the Erlang VM.

load_module_to_env(mod_name, env, opts \\ [])

Loads a module by name into the environment.

resolve_imports(module, env, opts)

Resolves and loads all imported modules.