FusionDSL v0.0.1-dev FusionDsl.Processor.CompileConfig View Source

Compile time configuration struct and helpers

Link to this section Summary

Functions

Initiates a config struct

Analyses and Processes a header, adds neccessary data into CompileConfig

Sets the start_code in config to finished line number of headers

Link to this section Types

Link to this type t() View Source
t() :: %FusionDsl.Processor.CompileConfig{
  clauses: list(),
  end_asts: list(),
  headers: %{optional(String.t()) => String.t()},
  imports: %{optional(String.t()) => true | false},
  ln: integer(),
  proc: atom(),
  prog: FusionDsl.Processor.Program.t(),
  start_code: integer()
}

Link to this section Functions

Initiates a config struct

Link to this function process_header(config, key, value) View Source

Analyses and Processes a header, adds neccessary data into CompileConfig

Link to this function set_start_code(config, line_number) View Source

Sets the start_code in config to finished line number of headers