Nock.Cue (Anoma v0.25.0)

Summary

Types

@type cue_tag() :: :atom | :cell | :backref
@type t() :: %Nock.Cue{
  cache: %{required(non_neg_integer()) => Noun.t()},
  position: non_neg_integer()
}

Functions

Link to this function

bit_width_tag(binary, env)

@spec bit_width_tag([1 | 0], t()) :: {non_neg_integer(), [1 | 0], t()}
Link to this function

bit_width_tag(list, env, counter)

@spec bit_width_tag([1 | 0], t(), non_neg_integer()) ::
  {non_neg_integer(), [1 | 0], t()}
@spec cue(Noun.noun_atom()) :: {:ok, Noun.t()} | :error
@spec cue!(Noun.noun_atom()) :: Noun.t()
Link to this function

cue_tag(list, env)

@spec cue_tag(list(), t()) :: {cue_tag(), [0 | 1], t()}
Link to this function

parse(bit_stream)

@spec parse([0 | 1]) :: {Noun.t(), [0 | 1], t()}
Link to this function

parse(bit_stream, cue_env)

@spec parse([0 | 1], t()) :: {Noun.t(), [0 | 1], t()}
Link to this function

parse_single(arg, pos_before_parse)

@spec parse_single({cue_tag(), [0 | 1], t()}, non_neg_integer()) ::
  {Noun.t(), [0 | 1], t()}
Link to this function

rub_no_index(bit_stream, env)

@spec rub_no_index([0 | 1], t()) :: {non_neg_integer(), list(), t()}