diff options
author | Chimrod <> | 2023-10-28 16:47:23 +0200 |
---|---|---|
committer | Chimrod <> | 2023-11-02 11:06:12 +0100 |
commit | dd060261e35fcb8a57f03b01dbe84ab772a2a199 (patch) | |
tree | 8faf51bfe647ab844c976dfcbba4ad4d533f07b4 /lib/qparser/lex_state.mli | |
parent | 872916a5661e31b655471ec0f9bf81a5474bc1ba (diff) |
Set up a context for parsing the literal strings
Diffstat (limited to 'lib/qparser/lex_state.mli')
-rw-r--r-- | lib/qparser/lex_state.mli | 14 |
1 files changed, 14 insertions, 0 deletions
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 |