diff options
Diffstat (limited to 'lib/qparser/lex_state.mli')
-rw-r--r-- | lib/qparser/lex_state.mli | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/qparser/lex_state.mli b/lib/qparser/lex_state.mli index 1e69faf..a3d1ed0 100644 --- a/lib/qparser/lex_state.mli +++ b/lib/qparser/lex_state.mli @@ -1,14 +1,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 nestedQuotedStringWraper : Lexbuf.stringWraper val dQuotedStringWraper : Lexbuf.stringWraper val readLongStringWraper : Lexbuf.stringWraper + +exception Out_of_context +(** This exception should not be raised in a normal situation. *) |