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 165 "aprepro_parser.h" // lalr1.cc:417 165 #line 89 "aprepro.yy" // lalr1.cc:417 172 #line 184 "aprepro_parser.h" // lalr1.cc:417 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" // lalr1.cc:417 649 #endif // !YY_SEAMS_APREPRO_PARSER_H_INCLUDED Tokens.
Definition: aprepro_parser.h:189
static const short yydefgoto_[]
Definition: aprepro_parser.h:426
S seq_
The wrapped container.
Definition: aprepro_parser.h:604
"Internal" symbol: element of the stack.
Definition: aprepro_parser.h:511
Parser & operator=(const Parser &)
Definition: aprepro.h:178
static const short yycheck_[]
Definition: aprepro_parser.h:433
char * string
Definition: aprepro_parser.h:169
static token_number_type yytranslate_(int t)
Convert a scanner token number t to a symbol number.
Definition: apr_parser.cc:2425
double val
Definition: aprepro_parser.h:167
state_type state
Definition: aprepro_parser.h:507
basic_symbol< by_state > super_type
Superclass.
Definition: aprepro_parser.h:514
S::reverse_iterator iterator
Definition: aprepro_parser.h:533
A stack with random access from its top.
Definition: aprepro_parser.h:529
Syntax errors thrown from user actions.
Definition: aprepro_parser.h:179
const T & operator[](size_type i) const
Definition: aprepro_parser.h:552
static const unsigned char yyr2_[]
Definition: aprepro_parser.h:443
#define YY_ATTRIBUTE_PURE
Definition: aprepro_parser.h:99
#define YY_MOVE_REF(Type)
Definition: aprepro_parser.h:68
void clear()
Destroy contents, and record that is empty.
Definition: aprepro_parser.h:285
Symbol semantic values.
Definition: aprepro_parser.h:164
void yypop_(int n=1)
Pop n symbols from the stack.
Definition: apr_parser.cc:371
void yypush_(const char *m, YY_MOVE_REF(stack_symbol_type) sym)
Definition: apr_parser.cc:354
Definition: aprepro_parser.h:638
static const unsigned char yydefact_[]
Definition: aprepro_parser.h:420
static const signed char yytable_ninf_
Definition: aprepro_parser.h:407
state_type kind_type
The symbol type as needed by the constructor.
Definition: aprepro_parser.h:484
static const short yypact_[]
Definition: aprepro_parser.h:415
static std::string yytnamerr_(const char *n)
Convert the symbol name n to a form suitable for a diagnostic.
Definition: apr_parser.cc:168
static const unsigned short yytable_[]
Definition: aprepro_parser.h:431
const_iterator end() const YY_NOEXCEPT
Bottom of the stack.
Definition: aprepro_parser.h:585
class Aprepro & aprepro
Definition: aprepro_parser.h:643
static const unsigned short yyrline_[]
Definition: aprepro_parser.h:452
stack(size_type n=200)
Definition: aprepro_parser.h:537
token::yytokentype token_type
(External) token type, as returned by yylex.
Definition: aprepro_parser.h:243
void yy_destroy_(const char *yymsg, basic_symbol< Base > &yysym) const
Reclaim the memory associated to a symbol.
Definition: apr_parser.cc:325
std::ostream & debug_stream() const YY_ATTRIBUTE_PURE
The current debugging stream.
Definition: apr_parser.cc:374
T & operator[](int i)
Definition: aprepro_parser.h:547
static const char *const yytname_[]
For a symbol, its name in clear.
Definition: aprepro_parser.h:449
token_type kind_type
The symbol type as needed by the constructor.
Definition: aprepro_parser.h:318
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:2413
struct symrec * tptr
Definition: aprepro_parser.h:168
Number of tokens.
Definition: aprepro_parser.h:639
int range_
Definition: aprepro_parser.h:597
static bool yy_table_value_is_error_(int yyvalue)
Definition: apr_parser.cc:394
virtual void yystack_print_()
Print the state stack on the debug stream.
Definition: apr_parser.cc:2404
const T & operator[](int i) const
Definition: aprepro_parser.h:593
Type access provider for state based symbols.
Definition: aprepro_parser.h:478
void yy_print_(std::ostream &yyo, const basic_symbol< Base > &yysym) const
Display a symbol type, value and location.
Definition: apr_parser.cc:336
S::size_type size_type
Definition: aprepro_parser.h:535
std::ostream * yycdebug_
Debug stream.
Definition: aprepro_parser.h:461
int yydebug_
Debugging level.
Definition: aprepro_parser.h:459
int symbol_number_type
Symbol type: an internal symbol number.
Definition: aprepro_parser.h:246
unsigned char token_number_type
Internal symbol number for tokens (subsumed by symbol_number_type).
Definition: aprepro_parser.h:252
stack< stack_symbol_type > stack_type
Stack type.
Definition: aprepro_parser.h:608
Parser(class Aprepro &aprepro_yyarg)
Build a parser object.
Definition: apr_parser.cc:197
Base super_type
Alias to Base.
Definition: aprepro_parser.h:263
state_type yy_lr_goto_state_(state_type yystate, int yysym)
Definition: apr_parser.cc:383
#define YY_RVREF(Type)
Definition: aprepro_parser.h:69
void push(YY_MOVE_REF(T) t)
Definition: aprepro_parser.h:562
~syntax_error() YY_NOEXCEPT YY_NOTHROW
Definition: apr_parser.cc:208
syntax_error(const std::string &m)
Definition: aprepro_parser.h:181
int state_type
State numbers.
Definition: aprepro_parser.h:386
static const unsigned char yyr1_[]
Definition: aprepro_parser.h:440
void clear() YY_NOEXCEPT
Pop all elements from the stack.
Definition: aprepro_parser.h:576
syntax_error(const syntax_error &s)
Definition: aprepro_parser.h:183
S::const_reverse_iterator const_iterator
Definition: aprepro_parser.h:534
~basic_symbol()
Destroy the symbol.
Definition: aprepro_parser.h:282
Type access provider for token (enum) based symbols.
Definition: aprepro_parser.h:304
virtual ~Parser()
Definition: apr_parser.cc:206
debug_level_type debug_level() const YY_ATTRIBUTE_PURE
The current debugging level.
Definition: apr_parser.cc:378
#define YY_NOTHROW
Definition: aprepro_parser.h:79
virtual std::string yysyntax_error_(state_type yystate, const symbol_type &yyla) const
Definition: apr_parser.cc:2027
"External" symbols: returned by the scanner.
Definition: aprepro_parser.h:343
const stack & stack_
Definition: aprepro_parser.h:596
size_type size() const YY_NOEXCEPT
Number of elements on the stack.
Definition: aprepro_parser.h:579
Number of nonterminal symbols.
Definition: aprepro_parser.h:635
const_iterator begin() const YY_NOEXCEPT
Iterator on top of the stack (going downwards).
Definition: aprepro_parser.h:582
virtual void error(const std::string &msg)
Definition: apr_parser.cc:2459
Definition: aprepro_parser.h:633
void pop(int n=1) YY_NOEXCEPT
Pop elements from the stack.
Definition: aprepro_parser.h:569
A Bison parser.
Definition: aprepro_parser.h:159
Termination state number.
Definition: aprepro_parser.h:636
T & operator[](size_type i)
Definition: aprepro_parser.h:542
Definition: aprepro_parser.h:260
void set_debug_stream(std::ostream &)
Set the current debugging stream.
Definition: apr_parser.cc:376
int operator()()
Definition: apr_parser.cc:396
virtual int parse()
Definition: apr_parser.cc:398
stack_type yystack_
The stack.
Definition: aprepro_parser.h:611
Definition: aprepro_parser.h:637
Last index in yytable_.
Definition: aprepro_parser.h:634
Definition: apr_aprepro.cc:68
static const unsigned char yystos_[]
Definition: aprepro_parser.h:437
Present a slice of the top of a stack.
Definition: aprepro_parser.h:588
yytokentype
Definition: aprepro_parser.h:191
int debug_level_type
Type for debugging levels.
Definition: aprepro_parser.h:366
void set_debug_level(debug_level_type l)
Set the current debugging level.
Definition: apr_parser.cc:380
basic_symbol()
Default constructor.
Definition: aprepro_parser.h:266
static const signed char yypgoto_[]
Definition: aprepro_parser.h:423
#define YY_NOEXCEPT
Definition: aprepro_parser.h:78
static const signed char yypact_ninf_
Definition: aprepro_parser.h:406
slice(const stack &stack, int range)
Definition: aprepro_parser.h:591
Definition: aprepro_parser.h:249
static bool yy_pact_value_is_default_(int yyvalue)
Definition: apr_parser.cc:392
const T & operator[](int i) const
Definition: aprepro_parser.h:557
struct array * arrval
Definition: aprepro_parser.h:170