MySQL 8.4.0
Source Code Documentation
sql_lexer_input_stream.h File Reference
#include <cassert>
#include <cstddef>
#include <cstring>
#include "lex_string.h"
#include "my_inttypes.h"
#include "mysql/strings/m_ctype.h"
#include "sql/lexer_yystype.h"
#include "sql/sql_digest_stream.h"
#include "strings/sql_chars.h"
#include "sql_lexer_error.h"

Go to the source code of this file.

Classes

class  Lex_input_stream
 This class represents the character input stream consumed during lexical analysis. More...
 

Enumerations

enum  enum_comment_state {
  NO_COMMENT , PRESERVE_COMMENT , DISCARD_COMMENT , NO_COMMENT ,
  PRESERVE_COMMENT , DISCARD_COMMENT
}
 The state of the lexical parser, when parsing comments. More...
 

Enumeration Type Documentation

◆ enum_comment_state

The state of the lexical parser, when parsing comments.

Enumerator
NO_COMMENT 

Not parsing comments.

PRESERVE_COMMENT 

Parsing comments that need to be preserved.

(Copy '/' '*' and '*' '/' sequences to the preprocessed buffer.) Typically, these are user comments '/' '*' ... '*' '/'.

DISCARD_COMMENT 

Parsing comments that need to be discarded.

(Don't copy '/' '*' '!' and '*' '/' sequences to the preprocessed buffer.) Typically, these are special comments '/' '*' '!' ... '*' '/', or '/' '*' '!' 'M' 'M' 'm' 'm' 'm' ... '*' '/', where the comment markers should not be expanded.

NO_COMMENT 

Not parsing comments.

PRESERVE_COMMENT 

Parsing comments that need to be preserved.

(Copy '/' '*' and '*' '/' sequences to the preprocessed buffer.) Typically, these are user comments '/' '*' ... '*' '/'.

DISCARD_COMMENT 

Parsing comments that need to be discarded.

(Don't copy '/' '*' '!' and '*' '/' sequences to the preprocessed buffer.) Typically, these are special comments '/' '*' '!' ... '*' '/', or '/' '*' '!' 'M' 'M' 'm' 'm' 'm' ... '*' '/', where the comment markers should not be expanded.