gnat v0.5.1 Gnat.Parser

Link to this section Summary

Link to this section Types

Link to this type parsed()
parsed() ::
  {:msg, String.t(), non_neg_integer(), String.t() | nil, binary()}
  | :ping
  | :pong
  | {:error, String.t()}
  | {:info, map()}

Link to this section Functions

Link to this function new()
new() :: %Gnat.Parser{partial: term(), state: term()}
Link to this function parse(parser, data)
parse(%Gnat.Parser{partial: term(), state: term()}, binary()) ::
  {%Gnat.Parser{partial: term(), state: term()}, [parsed()]}
Link to this function parse(parser, bytes, parsed)