File: types.ex

package info (click to toggle)
elixir-makeup 1.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 384 kB
  • sloc: javascript: 24; makefile: 9
file content (9 lines) | stat: -rw-r--r-- 438 bytes parent folder | download
1
2
3
4
5
6
7
8
9
defmodule Makeup.Lexer.Types do
  @type token :: {atom(), map(), iodata()}
  @type tokens :: [token()]
  @type context :: map()
  @type parsec_success :: {:ok, tokens, String.t(), context(), {integer(), integer()}, integer()}
  @type parsec_failure :: {:error, String.t(), String.t(), context(), {integer(), integer()}, integer()}
  @type parsec_result :: parsec_success | parsec_failure
  @type parsec :: (String.t -> parsec_result)
end