package camlp4

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Loc : sig ... end
module Token : sig ... end
module Error : sig ... end
type context = Camlp4.Struct.Lexer.Make(Camlp4.PreCast.Syntax.Token).context = {
  1. loc : Loc.t;
  2. in_comment : bool;
  3. quotations : bool;
  4. antiquots : bool;
  5. lexbuf : Lexing.lexbuf;
  6. buffer : Buffer.t;
}
val default_context : Lexing.lexbuf -> context
val store : context -> unit
val istore_char : context -> int -> unit
val buff_contents : context -> string
val loc : context -> Loc.t
val quotations : context -> bool
val antiquots : context -> bool
val is_in_comment : context -> bool
val in_comment : context -> context
val set_start_p : context -> unit
val move_start_p : int -> context -> unit
val with_curr_loc : (context -> Lexing.lexbuf -> 'a) -> context -> 'a
val parse_nested : (context -> Lexing.lexbuf -> 'a) -> context -> string
val shift : int -> context -> context
val store_parse : (context -> Lexing.lexbuf -> 'a) -> context -> 'a
val parse : (context -> Lexing.lexbuf -> 'a) -> context -> 'a
val mk_quotation : (context -> Lexing.lexbuf -> 'a) -> context -> string -> string -> int -> Camlp4.Sig.camlp4_token
val update_loc : context -> string option -> int -> bool -> int -> unit
val cvt_int_literal : string -> int
val cvt_int32_literal : string -> int32
val cvt_int64_literal : string -> int64
val cvt_nativeint_literal : string -> nativeint
val err : Error.t -> Loc.t -> 'a
val warn : Error.t -> Loc.t -> unit
val __ocaml_lex_tables : Lexing.lex_tables
val __ocaml_lex_token_rec : context -> Lexing.lexbuf -> int -> Camlp4.Sig.camlp4_token
val comment : context -> Lexing.lexbuf -> unit
val __ocaml_lex_comment_rec : context -> Lexing.lexbuf -> int -> unit
val string : context -> Lexing.lexbuf -> unit
val __ocaml_lex_string_rec : context -> Lexing.lexbuf -> int -> unit
val symbolchar_star : string -> context -> Lexing.lexbuf -> Camlp4.Sig.camlp4_token
val __ocaml_lex_symbolchar_star_rec : string -> context -> Lexing.lexbuf -> int -> Camlp4.Sig.camlp4_token
val maybe_quotation_at : context -> Lexing.lexbuf -> Camlp4.Sig.camlp4_token
val __ocaml_lex_maybe_quotation_at_rec : context -> Lexing.lexbuf -> int -> Camlp4.Sig.camlp4_token
val maybe_quotation_colon : context -> Lexing.lexbuf -> Camlp4.Sig.camlp4_token
val __ocaml_lex_maybe_quotation_colon_rec : context -> Lexing.lexbuf -> int -> Camlp4.Sig.camlp4_token
val quotation : context -> Lexing.lexbuf -> unit
val __ocaml_lex_quotation_rec : context -> Lexing.lexbuf -> int -> unit
val __ocaml_lex_dollar_rec : context -> Lexing.lexbuf -> int -> Camlp4.Sig.camlp4_token
val antiquot : string -> context -> Lexing.lexbuf -> Camlp4.Sig.camlp4_token
val __ocaml_lex_antiquot_rec : string -> context -> Lexing.lexbuf -> int -> Camlp4.Sig.camlp4_token
val lexing_store : char Stream.t -> bytes -> int -> int
val from_context : context -> (Camlp4.Sig.camlp4_token * Loc.t) Stream.t
val from_lexbuf : ?quotations:bool -> Lexing.lexbuf -> (Camlp4.Sig.camlp4_token * Loc.t) Stream.t
val setup_loc : Lexing.lexbuf -> Loc.t -> unit
val from_string : ?quotations:bool -> Loc.t -> string -> (Camlp4.Sig.camlp4_token * Loc.t) Stream.t
val from_stream : ?quotations:bool -> Loc.t -> char Stream.t -> (Camlp4.Sig.camlp4_token * Loc.t) Stream.t
val mk : unit -> Loc.t -> char Stream.t -> (Camlp4.Sig.camlp4_token * Loc.t) Stream.t
OCaml

Innovation. Community. Security.