Doxygen
Toggle main menu visibility
Loading...
Searching...
No Matches
constexp_p.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
* Copyright (C) 1997-2021 by Dimitri van Heesch.
4
*
5
* Permission to use, copy, modify, and distribute this software and its
6
* documentation under the terms of the GNU General Public License is hereby
7
* granted. No representations are made about the suitability of this software
8
* for any purpose. It is provided "as is" without express or implied warranty.
9
* See the GNU General Public License for more details.
10
*
11
* Documents produced by Doxygen are derivative works derived from the
12
* input used in their production; they are not affected by this license.
13
*
14
*/
15
16
#ifndef CONSTEXP_P_H
17
#define CONSTEXP_P_H
18
19
#include <string>
20
21
//! @file
22
//! @brief Private interface between Parser (constexp.y) and Lexer (constexp.l)
23
24
#include "
cppvalue.h
"
25
#ifdef YYSTYPE
26
#undef YYSTYPE
27
#endif
28
#define YYSTYPE CPPValue
29
#define YY_TYPEDEF_YY_SCANNER_T
30
31
struct
yyguts_t;
32
typedef
yyguts_t*
yyscan_t
;
33
struct
constexpYY_state
34
{
35
std::string
strToken
;
36
CPPValue
resultValue
;
37
int
constExpLineNr
;
38
std::string
constExpFileName
;
39
40
std::string
orgString
;
41
std::string
inputString
;
42
int
inputPosition
;
43
};
44
constexpYY_state
*
constexpYYget_extra
(
yyscan_t
yyscanner );
45
46
int
constexpYYlex
(
YYSTYPE
*lvalp,
yyscan_t
);
47
int
constexpYYparse
(
yyscan_t
);
48
49
50
#endif
CPPValue
A class representing a C-preprocessor value.
Definition
cppvalue.h:24
yyscan_t
yyguts_t * yyscan_t
Definition
code.l:24
YYSTYPE
#define YYSTYPE
Definition
constexp_p.h:28
constexpYYparse
int constexpYYparse(yyscan_t)
constexpYYget_extra
constexpYY_state * constexpYYget_extra(yyscan_t yyscanner)
constexpYYlex
int constexpYYlex(YYSTYPE *lvalp, yyscan_t)
cppvalue.h
constexpYY_state
Definition
constexp_p.h:34
constexpYY_state::inputPosition
int inputPosition
Definition
constexp_p.h:42
constexpYY_state::inputString
std::string inputString
Definition
constexp_p.h:41
constexpYY_state::orgString
std::string orgString
Definition
constexp_p.h:40
constexpYY_state::resultValue
CPPValue resultValue
Definition
constexp_p.h:36
constexpYY_state::constExpLineNr
int constExpLineNr
Definition
constexp_p.h:37
constexpYY_state::strToken
std::string strToken
Definition
constexp_p.h:35
constexpYY_state::constExpFileName
std::string constExpFileName
Definition
constexp_p.h:38
src
constexp_p.h
Generated by
1.17.0