Module Ocamlformat_parser_standard.LexerSource
Sourcetype error = | Illegal_character of char| Illegal_escape of string * string option| Reserved_sequence of string * string option| Unterminated_string| Empty_character_literal| Keyword_as_label of string| Capitalized_label of string| Invalid_literal of string| Invalid_directive of string * string option| Invalid_encoding of string| Invalid_char_in_ident of Ocamlformat_parser_shims.Uchar.t| Non_lowercase_delimiter of string| Capitalized_raw_identifier of string| Unknown_keyword of string
Sourceval populate_keywords : ((int * int) option * string list) -> unit Sourceval string_buffer : Stdlib.Buffer.t Sourceval reset_string_buffer : unit -> unit Sourceval get_stored_string : unit -> string Sourceval store_string_char : char -> unit Sourceval store_string_utf_8_uchar : Stdlib.Uchar.t -> unit Sourceval store_string : string -> unit Sourceval store_substring : string -> pos:int -> len:int -> unit Sourceval store_lexeme : Stdlib.Lexing.lexbuf -> unit Sourceval store_normalized_newline : string -> unit Sourceval is_in_string : bool Stdlib.ref Sourceval in_string : unit -> bool Sourceval print_warnings : bool Stdlib.ref Sourceval store_escaped_char : Stdlib.Lexing.lexbuf -> char -> unit Sourceval store_escaped_uchar : Stdlib.Lexing.lexbuf -> Stdlib.Uchar.t -> unit Sourceval digit_value : char -> int Sourceval num_value :
Stdlib.Lexing.lexbuf ->
base:int ->
first:int ->
last:int ->
int Sourceval char_for_backslash : char -> char Sourceval illegal_escape : Stdlib.Lexing.lexbuf -> string -> 'a Sourceval char_for_decimal_code : Stdlib.Lexing.lexbuf -> int -> char Sourceval char_for_octal_code : Stdlib.Lexing.lexbuf -> int -> char Sourceval char_for_hexadecimal_code : Stdlib.Lexing.lexbuf -> int -> char Sourceval validate_encoding : Stdlib.Lexing.lexbuf -> string -> string Sourceval ident_for_extended : Stdlib.Lexing.lexbuf -> string -> string Sourceval validate_delim : Stdlib.Lexing.lexbuf -> string -> string Sourceval validate_ext : Stdlib.Lexing.lexbuf -> string -> string Sourceval lax_delim : string -> string option Sourceval is_keyword : string -> bool Sourceval check_label_name :
?raw_escape:bool ->
Stdlib.Lexing.lexbuf ->
string ->
unit Sourceval set_lexeme_length : Stdlib.Lexing.lexbuf -> int -> unit Sourceval update_loc :
Stdlib.Lexing.lexbuf ->
string option ->
int ->
bool ->
int ->
unit Sourceval escaped_newlines : bool Stdlib.ref Sourceval handle_docstrings : bool Stdlib.ref Sourceval __ocaml_lex_tables : Stdlib.Lexing.lex_tables Sourceval string : Stdlib.Lexing.lexbuf -> Stdlib.Lexing.position Sourceval __ocaml_lex_string_rec :
Stdlib.Lexing.lexbuf ->
int ->
Stdlib.Lexing.position Sourceval quoted_string : string -> Stdlib.Lexing.lexbuf -> Stdlib.Lexing.position Sourceval __ocaml_lex_quoted_string_rec :
string ->
Stdlib.Lexing.lexbuf ->
int ->
Stdlib.Lexing.position Sourceval skip_hash_bang : Stdlib.Lexing.lexbuf -> unit Sourceval __ocaml_lex_skip_hash_bang_rec : Stdlib.Lexing.lexbuf -> int -> unit Sourcetype newline_state = | NoLine| NewLine| BlankLine
Sourceval init : ?keyword_edition:((int * int) option * string list) -> unit -> unit