pinchpi_lexer_tokens (pinchpi v0.1.0)

Summary

Functions

count_newlines(Bin)

-spec count_newlines(binary()) -> non_neg_integer().

is_ident_char(C)

-spec is_ident_char(byte()) -> boolean().

is_ident_start(C)

-spec is_ident_start(byte()) -> boolean().

is_ws(C)

-spec is_ws(byte()) -> boolean().

keyword_or_string(Ident)

-spec keyword_or_string(binary()) -> {atom(), binary()} | atom().

match_operator(_)

-spec match_operator(binary()) -> {atom(), binary()} | none.

parse_number(Bin)

-spec parse_number(binary()) ->
                      {{t_lnumber, integer()} | {t_dnumber, float()} | {lex_error, binary()}, binary()}.

unescape_double(Bin)

-spec unescape_double(binary()) -> binary().

unescape_double_checked(Bin)

-spec unescape_double_checked(binary()) -> {ok, binary()} | {error, binary()}.