package merlin-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type position = Stdlib.Lexing.position = {
  1. pos_fname : string;
  2. pos_lnum : int;
  3. pos_bol : int;
  4. pos_cnum : int;
}
include module type of struct include Stdlib.Lexing end with type position := position
val dummy_pos : position
type lexbuf = Stdlib__Lexing.lexbuf = {
  1. refill_buff : lexbuf -> unit;
  2. mutable lex_buffer : bytes;
  3. mutable lex_buffer_len : int;
  4. mutable lex_abs_pos : int;
  5. mutable lex_start_pos : int;
  6. mutable lex_curr_pos : int;
  7. mutable lex_last_pos : int;
  8. mutable lex_last_action : int;
  9. mutable lex_eof_reached : bool;
  10. mutable lex_mem : int array;
  11. mutable lex_start_p : position;
  12. mutable lex_curr_p : position;
}
val from_channel : ?with_positions:bool -> Stdlib.in_channel -> lexbuf
val from_string : ?with_positions:bool -> string -> lexbuf
val from_function : ?with_positions:bool -> (bytes -> int -> int) -> lexbuf
val set_position : lexbuf -> position -> unit
val set_filename : lexbuf -> string -> unit
val with_positions : lexbuf -> bool
val lexeme : lexbuf -> string
val lexeme_char : lexbuf -> int -> char
val lexeme_start : lexbuf -> int
val lexeme_end : lexbuf -> int
val lexeme_start_p : lexbuf -> position
val lexeme_end_p : lexbuf -> position
val new_line : lexbuf -> unit
val flush_input : lexbuf -> unit
val sub_lexeme : lexbuf -> int -> int -> string
val sub_lexeme_opt : lexbuf -> int -> int -> string option
val sub_lexeme_char : lexbuf -> int -> char
val sub_lexeme_char_opt : lexbuf -> int -> char option
type lex_tables = Stdlib__Lexing.lex_tables = {
  1. lex_base : string;
  2. lex_backtrk : string;
  3. lex_default : string;
  4. lex_trans : string;
  5. lex_check : string;
  6. lex_base_code : string;
  7. lex_backtrk_code : string;
  8. lex_default_code : string;
  9. lex_trans_code : string;
  10. lex_check_code : string;
  11. lex_code : string;
}
val engine : lex_tables -> int -> lexbuf -> int
val new_engine : lex_tables -> int -> lexbuf -> int
val move : lexbuf -> position -> unit
val from_strings : ?empty:bool Stdlib.ref -> ?position:position -> string -> (unit -> string) -> lexbuf
val make_pos : ?pos_fname:string -> (int * int) -> position
val column : position -> int
val set_column : position -> int -> position
val split_pos : position -> int * int
val compare_pos : position -> position -> int
val print_position : unit -> position -> string
val immediate_pos : lexbuf -> position
val json_of_position : position -> [> `Assoc of (string * [> `Int of int ]) list ]
val min_pos : position -> position -> position
val max_pos : position -> position -> position
OCaml

Innovation. Community. Security.