package rfsm

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Source program locations

type t =
  1. | Loc of string * int * int
    (*

    Filename, position of the first character, position of the next character following the last one

    *)
val mk : (Stdlib.Lexing.position * Stdlib.Lexing.position) -> t
val get_current_location : unit -> t
val no_location : t
val input_name : string Stdlib.ref
val input_chan : Stdlib.in_channel Stdlib.ref
val input_lexbuf : Stdlib.Lexing.lexbuf Stdlib.ref
val pp_location : Stdlib.Format.formatter -> t -> unit
val pp_input_name : Stdlib.Format.formatter -> unit
val string_of_location : t -> string
val text_of_location : t -> string
OCaml

Innovation. Community. Security.