package ocamlformat-lib

  1. Overview
  2. Docs
OCaml Code Formatter

Install

Dune Dependency

Authors

Maintainers

Sources

ocamlformat-0.26.2.tbz
sha256=2e4f596bf7aa367a844fe83ba0f6b0bf14b2a65179ddc082363fe9793d0375c5
sha512=b03d57462e65b11aa9f78dd5c4548251e8d1c5a1c9662f7502bdb10472aeb9df33c1d407350767a5223fbff9c01d53de85bafacd0274b49abc4b43701b159bee

doc/ocamlformat-lib.parser_standard/Parser_standard/Lexer/index.html

Module Parser_standard.LexerSource

Sourcetype error =
  1. | Illegal_character of char
  2. | Illegal_escape of string * string option
  3. | Reserved_sequence of string * string option
  4. | Unterminated_comment of Ocaml_common.Location.t
  5. | Unterminated_string
  6. | Unterminated_string_in_comment of Ocaml_common.Location.t * Ocaml_common.Location.t
  7. | Empty_character_literal
  8. | Keyword_as_label of string
  9. | Invalid_literal of string
  10. | Invalid_directive of string * string option
Sourceval keyword_table : (string, Parser.token) Hashtbl.t
Sourceval string_buffer : 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 : Uchar.t -> unit
Sourceval store_string : string -> unit
Sourceval store_lexeme : Lexing.lexbuf -> unit
Sourceval string_start_loc : Ocaml_common.Location.t ref
Sourceval comment_start_loc : Ocaml_common.Location.t list ref
Sourceval in_comment : unit -> bool
Sourceval is_in_string : bool ref
Sourceval in_string : unit -> bool
Sourceval print_warnings : bool ref
Sourceval store_escaped_char : Lexing.lexbuf -> char -> unit
Sourceval store_escaped_uchar : Lexing.lexbuf -> Uchar.t -> unit
Sourceval compute_quoted_string_idloc : Ocaml_common.Location.t -> int -> string -> Ocaml_common.Location.t
Sourceval wrap_string_lexer : (Lexing.lexbuf -> Lexing.position) -> Lexing.lexbuf -> string * Ocaml_common.Location.t
Sourceval error : Lexing.lexbuf -> error -> 'a
Sourceval error_loc : Ocaml_common.Location.t -> error -> 'a
Sourceval digit_value : char -> int
Sourceval num_value : Lexing.lexbuf -> base:int -> first:int -> last:int -> int
Sourceval char_for_backslash : char -> char
Sourceval illegal_escape : Lexing.lexbuf -> string -> 'a
Sourceval char_for_decimal_code : Lexing.lexbuf -> int -> char
Sourceval char_for_octal_code : Lexing.lexbuf -> int -> char
Sourceval char_for_hexadecimal_code : Lexing.lexbuf -> int -> char
Sourceval uchar_for_uchar_escape : Lexing.lexbuf -> Uchar.t
Sourceval is_keyword : string -> bool
Sourceval check_label_name : Lexing.lexbuf -> string -> unit
Sourceval set_lexeme_length : Lexing.lexbuf -> int -> unit
Sourceval disambiguate : Lexing.lexbuf -> string -> Parser.token
Sourceval try_disambiguate : Lexing.lexbuf -> Parser.token -> Parser.token option
Sourceval update_loc : Lexing.lexbuf -> string option -> int -> bool -> int -> unit
Sourceval preprocessor : ((unit -> unit) * ((Lexing.lexbuf -> Parser.token) -> Lexing.lexbuf -> Parser.token)) option ref
Sourceval escaped_newlines : bool ref
Sourceval warn_latin1 : Lexing.lexbuf -> unit
Sourceval handle_docstrings : bool ref
Sourceval comment_list : (string * Ocaml_common.Location.t) list ref
Sourceval add_comment : (string * Ocaml_common.Location.t) -> unit
Sourceval add_docstring_comment : Docstrings.docstring -> unit
Sourceval comments : unit -> (string * Ocaml_common.Location.t) list
Sourceval __ocaml_lex_tables : Lexing.lex_tables
Sourceval __ocaml_lex_token_rec : Lexing.lexbuf -> int -> Parser.token
Sourceval __ocaml_lex_directive_rec : Lexing.lexbuf -> int -> Parser.token
Sourceval __ocaml_lex_comment_rec : Lexing.lexbuf -> int -> Ocaml_common.Location.t
Sourceval __ocaml_lex_string_rec : Lexing.lexbuf -> int -> Lexing.position
Sourceval quoted_string : string -> Lexing.lexbuf -> Lexing.position
Sourceval __ocaml_lex_quoted_string_rec : string -> Lexing.lexbuf -> int -> Lexing.position
Sourceval skip_hash_bang : Lexing.lexbuf -> unit
Sourceval __ocaml_lex_skip_hash_bang_rec : Lexing.lexbuf -> int -> unit
Sourceval token_with_comments : Lexing.lexbuf -> Parser.token
Sourcetype newline_state =
  1. | NoLine
  2. | NewLine
  3. | BlankLine
Sourcetype doc_state =
  1. | Initial
  2. | After of docstring list
  3. | Before of docstring list * docstring list * docstring list
Sourceval init : unit -> unit
Sourceval set_preprocessor : (unit -> unit) -> ((Lexing.lexbuf -> Parser.token) -> Lexing.lexbuf -> Parser.token) -> unit
OCaml

Innovation. Community. Security.