MySQL 8.0.39
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 YYLTYPE. More...
 
struct  YYLTYPE
 Bison "location" class. More...
 

Macros

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

Typedefs

typedef YYLTYPE POS
 

Macro Definition Documentation

◆ 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

◆ YYLTYPE_IS_DECLARED

#define YYLTYPE_IS_DECLARED   1

Typedef Documentation

◆ POS

typedef YYLTYPE POS