MySQL 9.1.0
Source Code Documentation
parse_location.h File Reference
#include <cstdlib>

Go to the source code of this file.

Classes

struct  Symbol_location
 Helper class for the MY_SQL_PARSER_LTYPE. More...
 
struct  MY_SQL_PARSER_LTYPE
 Bison "location" class. More...
 

Macros

#define MY_SQL_PARSER_LTYPE_IS_DECLARED   1
 
#define YYLLOC_DEFAULT(Current, Rhs, N)
 Bison calls this macro: More...
 

Typedefs

using POS = MY_SQL_PARSER_LTYPE
 

Macro Definition Documentation

◆ MY_SQL_PARSER_LTYPE_IS_DECLARED

#define MY_SQL_PARSER_LTYPE_IS_DECLARED   1

◆ YYLLOC_DEFAULT

#define YYLLOC_DEFAULT (   Current,
  Rhs,
 
)
Value:
if (N) { \
(Current).cpp.start = YYRHSLOC(Rhs, 1).cpp.start; \
(Current).cpp.end = YYRHSLOC(Rhs, N).cpp.end; \
(Current).raw.start = YYRHSLOC(Rhs, 1).raw.start; \
(Current).raw.end = YYRHSLOC(Rhs, N).raw.end; \
} else { \
(Current).cpp.start = (Current).cpp.end = YYRHSLOC(Rhs, 0).cpp.end; \
(Current).raw.start = (Current).raw.end = YYRHSLOC(Rhs, 0).raw.end; \
} \
while (0)
#define YYRHSLOC(Rhs, K)
Definition: fts0pars.cc:653
if(!(yy_init))
Definition: lexyy.cc:1144
std::atomic< Type > N
Definition: ut0counter.h:225

Bison calls this macro:

  1. each time a rule is matched and
  2. to compute a syntax error location.
Parameters
[out]Currentlocation of the whole matched rule
Rhslocations of all right hand side elements in the rule
Nnumber of right hand side elements in the rule

Typedef Documentation

◆ POS