View Source Orb.Iterator behaviour (Orb v0.0.38)

Summary

Types

@type var_ref() :: %Orb.VariableReference{
  global_or_local: term(),
  identifier: term(),
  push_type: term()
}

Callbacks

@callback next(var_ref()) ::
  %Orb.Instruction{
    operands: term(),
    operation: term(),
    pop_type: term(),
    push_type: term()
  }
  | integer()
  | float()
@callback valid?(var_ref()) ::
  %Orb.Instruction{
    operands: term(),
    operation: term(),
    pop_type: term(),
    push_type: term()
  }
  | integer()
  | float()
@callback value(var_ref()) ::
  %Orb.Instruction{
    operands: term(),
    operation: term(),
    pop_type: term(),
    push_type: term()
  }
  | integer()
  | float()