View Source Makeup.Lexer.Types (Makeup v1.2.1)

Summary

Types

@type context() :: map()
@type parsec() :: (String.t() -> parsec_result())
@type parsec_failure() ::
  {:error, String.t(), String.t(), context(), {integer(), integer()}, integer()}
@type parsec_result() :: parsec_success() | parsec_failure()
@type parsec_success() ::
  {:ok, tokens(), String.t(), context(), {integer(), integer()}, integer()}
@type token() :: {atom(), map(), iodata()}
@type tokens() :: [token()]