From dd060261e35fcb8a57f03b01dbe84ab772a2a199 Mon Sep 17 00:00:00 2001 From: Chimrod <> Date: Sat, 28 Oct 2023 16:47:23 +0200 Subject: Set up a context for parsing the literal strings --- lib/qparser/lex_state.mli | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lib/qparser/lex_state.mli (limited to 'lib/qparser/lex_state.mli') diff --git a/lib/qparser/lex_state.mli b/lib/qparser/lex_state.mli new file mode 100644 index 0000000..1e69faf --- /dev/null +++ b/lib/qparser/lex_state.mli @@ -0,0 +1,14 @@ +(** This module keep a track of the different way to start, escape and end a + string in the lexer. + + Depending on how the string was started (a single quote or double quote), + we have differents caracters for every of thoses actions. +*) + +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 -- cgit v1.2.3