zigler v0.3.0-pre3 Zigler.Assembler View Source

Phase One of Zigler compilation process.

Looks through the contents of the zig code and creates a map of required source code files. Then outputs a struct containing the relevant information.

Link to this section Summary

Functions

assembles zig assets, taking them from their source to and putting them into the target directory.

assembles the "core" part of the zig adapter code, these are parts for shimming Zig libraries into the BEAM that are going to be @import'd into the runtime by default.

Link to this section Types

Link to this type

file_type()

View Source
file_type() :: :zig | :cinclude
Link to this type

t()

View Source
t() :: %Zigler.Assembler{
  context: [String.t()],
  pub: boolean(),
  source: Path.t(),
  target: Path.t(),
  type: file_type()
}

Link to this section Functions

Link to this function

assemble_asset!(instruction, root_dir)

View Source
Link to this function

assemble_assets!(assembly, root_dir)

View Source

assembles zig assets, taking them from their source to and putting them into the target directory.

Link to this function

assemble_kernel!(assembly_dir)

View Source

assembles the "core" part of the zig adapter code, these are parts for shimming Zig libraries into the BEAM that are going to be @import'd into the runtime by default.

Link to this function

parse_code(code, options)

View Source
Link to this function

parse_file(file_path, options)

View Source