From 05f74bee05c0c56da593a5e89069711d5993e3b1 Mon Sep 17 00:00:00 2001 From: Chimrod <> Date: Mon, 30 Oct 2023 08:22:39 +0100 Subject: Managed the strings in strings --- lib/qparser/lex_state.mli | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'lib/qparser/lex_state.mli') 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. *) -- cgit v1.2.3