MySQL 源码解读 -- parser

structure

1
2
3
4
5
6
7
8
9
10
11
12
13
//Internal state of the parser.
class Parser_state {
Parser_input m_input; //control the parser behavior
Lex_input_stream m_lip; //state data used during lexical parsing
Yacc_state m_yacc; //state data used during syntactic parsing.
bool m_comment; ///< True if current query contains comments
}

struct Parser_input {
bool m_compute_digest;
};