Parser_extended.Lexer
type error =
| Illegal_character of char
| Illegal_escape of string * string option
| Reserved_sequence of string * string option
| Unterminated_comment of Ocaml_common.Location.t
| Unterminated_string
| Unterminated_string_in_comment of Ocaml_common.Location.t
* Ocaml_common.Location.t
| Empty_character_literal
| Keyword_as_label of string
| Invalid_literal of string
| Invalid_directive of string * string option
exception Error of error * Ocaml_common.Location.t
val keyword_table : (string, Parser_extended.Parser.token) Hashtbl.t
val string_buffer : Buffer.t
val store_string_utf_8_uchar : Uchar.t -> unit
val store_lexeme : Lexing.lexbuf -> unit
val string_start_loc : Ocaml_common.Location.t ref
val comment_start_loc : Ocaml_common.Location.t list ref
val is_in_string : bool ref
val print_warnings : bool ref
val store_escaped_char : Lexing.lexbuf -> char -> unit
val store_escaped_uchar : Lexing.lexbuf -> Uchar.t -> unit
val compute_quoted_string_idloc :
Ocaml_common.Location.t ->
int ->
string ->
Ocaml_common.Location.t
val wrap_string_lexer :
(Lexing.lexbuf -> Lexing.position) ->
Lexing.lexbuf ->
string * Ocaml_common.Location.t
val wrap_comment_lexer :
(Lexing.lexbuf -> Ocaml_common.Location.t) ->
Lexing.lexbuf ->
string * Ocaml_common.Location.t
val error : Lexing.lexbuf -> error -> 'a
val error_loc : Ocaml_common.Location.t -> error -> 'a
val num_value : Lexing.lexbuf -> base:int -> first:int -> last:int -> int
val illegal_escape : Lexing.lexbuf -> string -> 'a
val char_for_decimal_code : Lexing.lexbuf -> int -> char
val char_for_octal_code : Lexing.lexbuf -> int -> char
val char_for_hexadecimal_code : Lexing.lexbuf -> int -> char
val uchar_for_uchar_escape : Lexing.lexbuf -> Uchar.t
val check_label_name : Lexing.lexbuf -> string -> unit
val set_lexeme_length : Lexing.lexbuf -> int -> unit
val disambiguate : Lexing.lexbuf -> string -> Parser_extended.Parser.token
val try_disambiguate :
Lexing.lexbuf ->
Parser_extended.Parser.token ->
Parser_extended.Parser.token option
val update_loc : Lexing.lexbuf -> string option -> int -> bool -> int -> unit
val preprocessor :
((unit ->
unit)
* ((Lexing.lexbuf -> Parser_extended.Parser.token) ->
Lexing.lexbuf ->
Parser_extended.Parser.token))
option
ref
val escaped_newlines : bool ref
val warn_latin1 : Lexing.lexbuf -> unit
val handle_docstrings : bool ref
val comment_list : (comment * Ocaml_common.Location.t) list ref
val add_comment : (string * Ocaml_common.Location.t) -> unit
val add_docstring_comment : Parser_extended.Docstrings.docstring -> unit
val comments : unit -> (comment * Ocaml_common.Location.t) list
val prepare_error :
Ocaml_common.Location.t ->
error ->
Ocaml_common.Location.error
val __ocaml_lex_tables : Lexing.lex_tables
val __ocaml_lex_token_rec :
Lexing.lexbuf ->
int ->
Parser_extended.Parser.token
val directive : Lexing.lexbuf -> Parser_extended.Parser.token
val __ocaml_lex_directive_rec :
Lexing.lexbuf ->
int ->
Parser_extended.Parser.token
val comment : Lexing.lexbuf -> Ocaml_common.Location.t
val __ocaml_lex_comment_rec : Lexing.lexbuf -> int -> Ocaml_common.Location.t
val string : Lexing.lexbuf -> Lexing.position
val __ocaml_lex_string_rec : Lexing.lexbuf -> int -> Lexing.position
val quoted_string : string -> Lexing.lexbuf -> Lexing.position
val __ocaml_lex_quoted_string_rec :
string ->
Lexing.lexbuf ->
int ->
Lexing.position
val skip_hash_bang : Lexing.lexbuf -> unit
val __ocaml_lex_skip_hash_bang_rec : Lexing.lexbuf -> int -> unit
val token_with_comments : Lexing.lexbuf -> Parser_extended.Parser.token
and docstring = Parser_extended.Docstrings.docstring
val token : Lexing.lexbuf -> Parser_extended.Parser.token
val set_preprocessor :
(unit -> unit) ->
((Lexing.lexbuf -> Parser_extended.Parser.token) ->
Lexing.lexbuf ->
Parser_extended.Parser.token) ->
unit