lex_state.mli 842 B

123456789101112131415161718192021222324
  1. (** This module keep a track of the different way to start, escape and end a
  2. string in the lexer.
  3. When a new string should be started ?
  4. Which sequence identify the end of the string
  5. How to handle the escaped characters inside this string
  6. Depending on how the string was started (a single quote or double quote),
  7. we have differents caracters for every of thoses actions.
  8. The defaultWraper is used in any case, and other wrapper are stacked above
  9. when needed. *)
  10. val defaultWraper : Lexbuf.stringWraper
  11. (** The default string lexer. Used when we start the lexing. *)
  12. val quotedStringWraper : Lexbuf.stringWraper
  13. val dQuotedStringWraper : Lexbuf.stringWraper
  14. val readLongStringWraper : Lexbuf.stringWraper
  15. exception Out_of_context
  16. (** This exception should not be raised in a normal situation. *)