jon.recoil.org

Module Ocaml_preprocess.Lexer_raw

type 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_parsing.Location.t
  5. | Unterminated_string
  6. | Unterminated_string_in_comment of Ocaml_parsing.Location.t * Ocaml_parsing.Location.t
  7. | Empty_character_literal
  8. | Keyword_as_label of string
  9. | Invalid_literal of string
  10. | Invalid_directive of string * string option
type keywords
val list_keywords : Ocaml_preprocess.Lexer_raw.keywords -> string list
type 'a result =
  1. | Return of 'a
  2. | Refill of unit -> 'a Ocaml_preprocess.Lexer_raw.result
  3. | Fail of Ocaml_preprocess.Lexer_raw.error * Ocaml_parsing.Location.t
type state = {
  1. keywords : Ocaml_preprocess.Lexer_raw.keywords;
  2. mutable buffer : Stdlib.Buffer.t;
  3. mutable string_start_loc : Ocaml_parsing.Location.t;
  4. mutable comment_start_loc : Ocaml_parsing.Location.t list;
  5. mutable preprocessor : Ocaml_preprocess.Lexer_raw.preprocessor option;
}
type comment = string * Ocaml_parsing.Location.t