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