pinchpi_lexer (pinchpi v0.1.0)

Summary

Types

lex_error/0

-type lex_error() ::
          {unterminated_comment, pos_integer()} |
          {unterminated_string, pos_integer()} |
          {unterminated_heredoc, binary(), pos_integer()} |
          {unexpected_char, byte(), pos_integer()} |
          {syntax_error, pos_integer(), binary()}.

token/0

-type token() :: {atom(), pos_integer()} | {atom(), pos_integer(), term()}.

Functions

tokenize(Bin)

-spec tokenize(binary()) -> {ok, [token()]} | {error, lex_error()}.