aboutsummaryrefslogtreecommitdiff
path: root/lib/qparser/lex_state.mli
diff options
context:
space:
mode:
authorChimrod <>2023-10-30 08:22:39 +0100
committerChimrod <>2023-11-02 14:53:02 +0100
commit05f74bee05c0c56da593a5e89069711d5993e3b1 (patch)
treed09dbc7fb8228b8091a48f7d4bf5f095638f2bad /lib/qparser/lex_state.mli
parenta1bb96e73f54eaa7c7e4af5d930e9d10074afb08 (diff)
Managed the strings in strings
Diffstat (limited to 'lib/qparser/lex_state.mli')
-rw-r--r--lib/qparser/lex_state.mli14
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. *)