-spec count_newlines(binary()) -> non_neg_integer().
-spec is_ident_char(byte()) -> boolean().
-spec is_ident_start(byte()) -> boolean().
-spec is_ws(byte()) -> boolean().
-spec keyword_or_string(binary()) -> {atom(), binary()} | atom().
-spec match_operator(binary()) -> {atom(), binary()} | none.
-spec parse_number(binary()) -> {{t_lnumber, integer()} | {t_dnumber, float()} | {lex_error, binary()}, binary()}.
-spec unescape_double(binary()) -> binary().
-spec unescape_double_checked(binary()) -> {ok, binary()} | {error, binary()}.