FusionDSL v0.0.1-dev FusionDsl.Runtime.Environment View Source

Envoirnment struct and behaviours for the programs

Link to this section Summary

Types

t()

The enviornment structure of executing scripts which contains

Functions

Prepares enviornments data and returns the data

Link to this section Types

Link to this type t() View Source
t() :: %FusionDsl.Runtime.Environment{
  assigns: map(),
  cur_proc: [atom()],
  jump_c: integer(),
  prog: FusionDsl.Processor.Program.t(),
  sys_vars: %{optional(String.t()) => any()},
  vars: %{optional(String.t()) => any()}
}

The enviornment structure of executing scripts which contains:

  • vars: Variables and their values.
  • sys_vars: Systematic variables and their values.
  • cur_proc: Stack of procedures.
  • assigns: Assigns which packages manipulated.
  • prog: Compiled program structure
  • jump_c: A safety integer counting number of jumps in code (Zombie detector)

Link to this section Functions

Prepares enviornments data and returns the data