Go to the documentation of this file.
43 #ifndef YY_SEAMS_APREPRO_PARSER_H_INCLUDED
44 #define YY_SEAMS_APREPRO_PARSER_H_INCLUDED
52 #if defined __cplusplus
53 #define YY_CPLUSPLUS __cplusplus
55 #define YY_CPLUSPLUS 199711L
59 #if 201103L <= YY_CPLUSPLUS
60 #define YY_MOVE std::move
61 #define YY_MOVE_OR_COPY move
62 #define YY_MOVE_REF(Type) Type &&
63 #define YY_RVREF(Type) Type &&
64 #define YY_COPY(Type) Type
67 #define YY_MOVE_OR_COPY copy
68 #define YY_MOVE_REF(Type) Type &
69 #define YY_RVREF(Type) const Type &
70 #define YY_COPY(Type) const Type &
74 #if 201103L <= YY_CPLUSPLUS
75 #define YY_NOEXCEPT noexcept
79 #define YY_NOTHROW throw()
83 #if 201703 <= YY_CPLUSPLUS
84 #define YY_CONSTEXPR constexpr
90 #if (defined __GNUC__ && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) || \
91 defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
92 #define YY_ATTRIBUTE(Spec) __attribute__(Spec)
94 #define YY_ATTRIBUTE(Spec)
98 #ifndef YY_ATTRIBUTE_PURE
99 #define YY_ATTRIBUTE_PURE YY_ATTRIBUTE((__pure__))
102 #ifndef YY_ATTRIBUTE_UNUSED
103 #define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE((__unused__))
107 #if !defined lint || defined __GNUC__
108 #define YYUSE(E) ((void)(E))
113 #if defined __GNUC__ && !defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
115 #define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
116 _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wuninitialized\"") \
117 _Pragma("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
118 #define YY_IGNORE_MAYBE_UNINITIALIZED_END _Pragma("GCC diagnostic pop")
120 #define YY_INITIAL_VALUE(Value) Value
122 #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
123 #define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
124 #define YY_IGNORE_MAYBE_UNINITIALIZED_END
126 #ifndef YY_INITIAL_VALUE
127 #define YY_INITIAL_VALUE(Value)
131 #if defined __cplusplus
132 #if 201103L <= __cplusplus
133 #define YY_NULLPTR nullptr
138 #define YY_NULLPTR ((void *)0)
156 #line 164 "aprepro_parser.h"
165 #line 89 "aprepro.yy"
172 #line 184 "aprepro_parser.h"
268 #if 201103L <= YY_CPLUSPLUS
297 #if YY_CPLUSPLUS < 201103L
309 #if 201103L <= YY_CPLUSPLUS
375 virtual void error(
const std::string &msg);
466 template <
typename Base>
503 enum { empty_state = -1 };
521 #if YY_CPLUSPLUS < 201103L
529 template <
typename T,
typename S = std::vector<T>>
class stack
565 operator[](0).move(t);
593 const T &
operator[](
int i)
const {
return stack_[range_ - i]; }
647 #line 728 "aprepro_parser.h"
649 #endif // !YY_SEAMS_APREPRO_PARSER_H_INCLUDED
const T & operator[](int i) const
Definition: aprepro_parser.h:593
#define YY_MOVE_REF(Type)
Definition: aprepro_parser.h:68
state_type state
Definition: aprepro_parser.h:507
virtual void yy_reduce_print_(int r)
Report on the debug stream that the rule r is going to be reduced.
Definition: apr_parser.cc:2463
const stack & stack_
Definition: aprepro_parser.h:596
static const signed char yypact_ninf_
Definition: aprepro_parser.h:406
Symbol semantic values.
Definition: aprepro_parser.h:164
std::ostream * yycdebug_
Debug stream.
Definition: aprepro_parser.h:461
static bool yy_pact_value_is_default_(int yyvalue)
Definition: apr_parser.cc:392
~basic_symbol()
Destroy the symbol.
Definition: aprepro_parser.h:282
Definition: apr_aprepro.cc:68
Type access provider for token (enum) based symbols.
Definition: aprepro_parser.h:304
Syntax errors thrown from user actions.
Definition: aprepro_parser.h:179
static const unsigned char yydefact_[]
Definition: aprepro_parser.h:420
Type access provider for state based symbols.
Definition: aprepro_parser.h:478
virtual void error(const std::string &msg)
Definition: apr_parser.cc:2510
yytokentype
Definition: aprepro_parser.h:191
void clear()
Destroy contents, and record that is empty.
Definition: aprepro_parser.h:285
void set_debug_stream(std::ostream &)
Set the current debugging stream.
Definition: apr_parser.cc:376
int range_
Definition: aprepro_parser.h:597
Number of nonterminal symbols.
Definition: aprepro_parser.h:635
syntax_error(const std::string &m)
Definition: aprepro_parser.h:181
Definition: aprepro_parser.h:637
static const char *const yytname_[]
For a symbol, its name in clear.
Definition: aprepro_parser.h:449
virtual std::string yysyntax_error_(state_type yystate, const symbol_type &yyla) const
Definition: apr_parser.cc:2074
token::yytokentype token_type
(External) token type, as returned by yylex.
Definition: aprepro_parser.h:243
T & operator[](size_type i)
Definition: aprepro_parser.h:542
S::const_reverse_iterator const_iterator
Definition: aprepro_parser.h:534
int operator()()
Definition: apr_parser.cc:396
void push(YY_MOVE_REF(T) t)
Definition: aprepro_parser.h:562
std::ostream & debug_stream() const YY_ATTRIBUTE_PURE
The current debugging stream.
Definition: apr_parser.cc:374
slice(const stack &stack, int range)
Definition: aprepro_parser.h:591
double val
Definition: aprepro_parser.h:167
syntax_error(const syntax_error &s)
Definition: aprepro_parser.h:183
Definition: aprepro_parser.h:633
state_type kind_type
The symbol type as needed by the constructor.
Definition: aprepro_parser.h:484
void yypush_(const char *m, YY_MOVE_REF(stack_symbol_type) sym)
Definition: apr_parser.cc:354
static const unsigned char yyr1_[]
Definition: aprepro_parser.h:440
#define YY_ATTRIBUTE_PURE
Definition: aprepro_parser.h:99
static const short yypact_[]
Definition: aprepro_parser.h:415
T & operator[](int i)
Definition: aprepro_parser.h:547
static const signed char yytable_ninf_
Definition: aprepro_parser.h:407
Parser(class Aprepro &aprepro_yyarg)
Build a parser object.
Definition: apr_parser.cc:197
static const short yycheck_[]
Definition: aprepro_parser.h:433
"External" symbols: returned by the scanner.
Definition: aprepro_parser.h:343
Last index in yytable_.
Definition: aprepro_parser.h:634
int yydebug_
Debugging level.
Definition: aprepro_parser.h:459
class Aprepro & aprepro
Definition: aprepro_parser.h:643
S seq_
The wrapped container.
Definition: aprepro_parser.h:604
const T & operator[](int i) const
Definition: aprepro_parser.h:557
static std::string yytnamerr_(const char *n)
Convert the symbol name n to a form suitable for a diagnostic.
Definition: apr_parser.cc:168
#define YY_NOEXCEPT
Definition: aprepro_parser.h:78
#define YY_RVREF(Type)
Definition: aprepro_parser.h:69
state_type yy_lr_goto_state_(state_type yystate, int yysym)
Definition: apr_parser.cc:383
Termination state number.
Definition: aprepro_parser.h:636
const_iterator end() const YY_NOEXCEPT
Bottom of the stack.
Definition: aprepro_parser.h:585
size_type size() const YY_NOEXCEPT
Number of elements on the stack.
Definition: aprepro_parser.h:579
void pop(int n=1) YY_NOEXCEPT
Pop elements from the stack.
Definition: aprepro_parser.h:569
struct symrec * tptr
Definition: aprepro_parser.h:168
#define YY_NOTHROW
Definition: aprepro_parser.h:79
const_iterator begin() const YY_NOEXCEPT
Iterator on top of the stack (going downwards).
Definition: aprepro_parser.h:582
Number of tokens.
Definition: aprepro_parser.h:639
basic_symbol< by_state > super_type
Superclass.
Definition: aprepro_parser.h:514
Tokens.
Definition: aprepro_parser.h:189
S::reverse_iterator iterator
Definition: aprepro_parser.h:533
int debug_level_type
Type for debugging levels.
Definition: aprepro_parser.h:366
Definition: aprepro_parser.h:249
void yypop_(int n=1)
Pop n symbols from the stack.
Definition: apr_parser.cc:371
static bool yy_table_value_is_error_(int yyvalue)
Definition: apr_parser.cc:394
Present a slice of the top of a stack.
Definition: aprepro_parser.h:588
virtual int parse()
Definition: apr_parser.cc:398
token_type kind_type
The symbol type as needed by the constructor.
Definition: aprepro_parser.h:318
stack< stack_symbol_type > stack_type
Stack type.
Definition: aprepro_parser.h:608
static const unsigned char yystos_[]
Definition: aprepro_parser.h:437
unsigned char token_number_type
Internal symbol number for tokens (subsumed by symbol_number_type).
Definition: aprepro_parser.h:252
Parser & operator=(const Parser &)
struct array * arrval
Definition: aprepro_parser.h:170
void clear() YY_NOEXCEPT
Pop all elements from the stack.
Definition: aprepro_parser.h:576
void set_debug_level(debug_level_type l)
Set the current debugging level.
Definition: apr_parser.cc:380
Base super_type
Alias to Base.
Definition: aprepro_parser.h:263
static const unsigned char yyr2_[]
Definition: aprepro_parser.h:443
static const unsigned short yytable_[]
Definition: aprepro_parser.h:431
Definition: aprepro_parser.h:260
const T & operator[](size_type i) const
Definition: aprepro_parser.h:552
debug_level_type debug_level() const YY_ATTRIBUTE_PURE
The current debugging level.
Definition: apr_parser.cc:378
virtual void yystack_print_()
Print the state stack on the debug stream.
Definition: apr_parser.cc:2454
char * string
Definition: aprepro_parser.h:169
int state_type
State numbers.
Definition: aprepro_parser.h:386
static const signed char yypgoto_[]
Definition: aprepro_parser.h:423
Definition: aprepro_parser.h:638
"Internal" symbol: element of the stack.
Definition: aprepro_parser.h:511
A stack with random access from its top.
Definition: aprepro_parser.h:529
virtual ~Parser()
Definition: apr_parser.cc:206
~syntax_error() YY_NOEXCEPT YY_NOTHROW
Definition: apr_parser.cc:208
Definition: aprepro.h:183
static const short yydefgoto_[]
Definition: aprepro_parser.h:426
S::size_type size_type
Definition: aprepro_parser.h:535
void yy_print_(std::ostream &yyo, const basic_symbol< Base > &yysym) const
Display a symbol type, value and location.
Definition: apr_parser.cc:336
int symbol_number_type
Symbol type: an internal symbol number.
Definition: aprepro_parser.h:246
stack(size_type n=200)
Definition: aprepro_parser.h:537
static const unsigned short yyrline_[]
Definition: aprepro_parser.h:452
static token_number_type yytranslate_(int t)
Convert a scanner token number t to a symbol number.
Definition: apr_parser.cc:2475
stack_type yystack_
The stack.
Definition: aprepro_parser.h:611
A Bison parser.
Definition: aprepro_parser.h:159
basic_symbol()
Default constructor.
Definition: aprepro_parser.h:266
void yy_destroy_(const char *yymsg, basic_symbol< Base > &yysym) const
Reclaim the memory associated to a symbol.
Definition: apr_parser.cc:325