40 #ifndef YY_SEAMS_APREPRO_PARSER_H_INCLUDED 41 #define YY_SEAMS_APREPRO_PARSER_H_INCLUDED 51 #if (defined __GNUC__ && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) || \ 52 defined __SUNPRO_C && 0x5110 <= __SUNPRO_C 53 #define YY_ATTRIBUTE(Spec) __attribute__(Spec) 55 #define YY_ATTRIBUTE(Spec) 59 #ifndef YY_ATTRIBUTE_PURE 60 #define YY_ATTRIBUTE_PURE YY_ATTRIBUTE((__pure__)) 63 #ifndef YY_ATTRIBUTE_UNUSED 64 #define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE((__unused__)) 67 #if !defined _Noreturn && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112) 68 #if defined _MSC_VER && 1200 <= _MSC_VER 69 #define _Noreturn __declspec(noreturn) 71 #define _Noreturn YY_ATTRIBUTE((__noreturn__)) 76 #if !defined lint || defined __GNUC__ 77 #define YYUSE(E) ((void)(E)) 82 #if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ 84 #define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ 85 _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wuninitialized\"") \ 86 _Pragma("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") 87 #define YY_IGNORE_MAYBE_UNINITIALIZED_END _Pragma("GCC diagnostic pop") 89 #define YY_INITIAL_VALUE(Value) Value 91 #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 92 #define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 93 #define YY_IGNORE_MAYBE_UNINITIALIZED_END 95 #ifndef YY_INITIAL_VALUE 96 #define YY_INITIAL_VALUE(Value) 105 #line 114 "aprepro_parser.h" // lalr1.cc:377 114 #line 90 "/scratch/gdsjaar/seacas/packages/seacas/libraries/aprepro_lib/aprepro.yy" // lalr1.cc:377 121 #line 135 "aprepro_parser.h" // lalr1.cc:377 303 virtual void error(
const std::string &msg);
393 template <
typename Base>
472 void yypop_(
unsigned int n = 1);
490 #line 516 "aprepro_parser.h" // lalr1.cc:377 492 #endif // !YY_SEAMS_APREPRO_PARSER_H_INCLUDED Tokens.
Definition: aprepro_parser.h:134
stack_symbol_type()
Construct an empty symbol.
Definition: apr_parser.cc:281
Definition: aprepro_parser.h:172
"Internal" symbol: element of the stack.
Definition: aprepro_parser.h:438
Parser & operator=(const Parser &)
Definition: aprepro_parser.h:178
Definition: aprepro_parser.h:182
Definition: aprepro_parser.h:174
Definition: aprepro.h:177
Definition: aprepro_parser.h:161
Definition: aprepro_parser.h:146
char * string
Definition: aprepro_parser.h:118
static token_number_type yytranslate_(int t)
Convert a scanner token number t to a symbol number.
Definition: apr_parser.cc:2348
double val
Definition: aprepro_parser.h:116
state_type state
Definition: aprepro_parser.h:434
Definition: aprepro_parser.h:147
basic_symbol< by_state > super_type
Superclass.
Definition: aprepro_parser.h:441
void move(by_state &that)
Steal the symbol type from that.
Definition: apr_parser.cc:265
Definition: aprepro_parser.h:141
Definition: aprepro_parser.h:148
Syntax errors thrown from user actions.
Definition: aprepro_parser.h:128
static const short int yypact_[]
Definition: aprepro_parser.h:343
static const unsigned char yyr2_[]
Definition: aprepro_parser.h:371
int type
Definition: aprepro_parser.h:273
#define YY_ATTRIBUTE_PURE
Definition: aprepro_parser.h:60
void clear()
Destroy contents, and record that is empty.
Definition: apr_parser.cc:228
static const short int yycheck_[]
Definition: aprepro_parser.h:361
Symbol semantic values.
Definition: aprepro_parser.h:113
Definition: aprepro_parser.h:138
Definition: aprepro_parser.h:179
Definition: aprepro_parser.h:171
by_state()
Default constructor.
Definition: apr_parser.cc:259
Definition: aprepro_parser.h:481
Definition: aprepro_parser.h:149
static const unsigned char yydefact_[]
Definition: aprepro_parser.h:348
static const signed char yytable_ninf_
Definition: aprepro_parser.h:335
Definition: aprepro_parser.h:170
state_type kind_type
The symbol type as needed by the constructor.
Definition: aprepro_parser.h:411
static std::string yytnamerr_(const char *n)
Convert the symbol name n to a form suitable for a diagnostic.
Definition: apr_parser.cc:161
Definition: aprepro_parser.h:139
class Aprepro & aprepro
Definition: aprepro_parser.h:486
basic_symbol< by_type > symbol_type
"External" symbols: returned by the scanner.
Definition: aprepro_parser.h:277
void move(by_type &that)
Steal the symbol type from that.
Definition: apr_parser.cc:250
Definition: aprepro_parser.h:158
bool empty() const
Whether empty.
Definition: apr_parser.cc:230
Definition: aprepro_parser.h:150
Definition: aprepro_parser.h:156
static const unsigned short int yyrline_[]
Definition: aprepro_parser.h:380
token::yytokentype token_type
(External) token type, as returned by yylex.
Definition: aprepro_parser.h:188
Definition: aprepro_parser.h:173
basic_symbol & operator=(const basic_symbol &other)
Assignment operator.
void yy_destroy_(const char *yymsg, basic_symbol< Base > &yysym) const
Reclaim the memory associated to a symbol.
Definition: apr_parser.cc:300
std::ostream & debug_stream() const YY_ATTRIBUTE_PURE
The current debugging stream.
Definition: apr_parser.cc:342
Definition: aprepro_parser.h:159
static const short int yydefgoto_[]
Definition: aprepro_parser.h:354
static const char *const yytname_[]
For a symbol, its name in clear.
Definition: aprepro_parser.h:377
Definition: aprepro_parser.h:166
Definition: aprepro_parser.h:152
Definition: aprepro_parser.h:176
token_type kind_type
The symbol type as needed by the constructor.
Definition: aprepro_parser.h:252
symbol_number_type type_get() const
Definition: apr_parser.cc:256
semantic_type value
The semantic value.
Definition: aprepro_parser.h:235
Definition: aprepro_parser.h:175
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:2334
struct symrec * tptr
Definition: aprepro_parser.h:117
Definition: aprepro_parser.h:163
Number of tokens.
Definition: aprepro_parser.h:482
Definition: aprepro_parser.h:168
stack_symbol_type & operator=(const stack_symbol_type &that)
Assignment, needed by push_back.
Definition: apr_parser.cc:292
static bool yy_table_value_is_error_(int yyvalue)
Definition: apr_parser.cc:362
Definition: aprepro_parser.h:143
virtual void yystack_print_()
Print the state stack on the debug stream.
Definition: apr_parser.cc:2325
Type access provider for state based symbols.
Definition: aprepro_parser.h:405
Definition: aprepro_parser.h:137
void yy_print_(std::ostream &yyo, const basic_symbol< Base > &yysym) const
Display a symbol type, value and location.
Definition: apr_parser.cc:311
std::ostream * yycdebug_
Definition: aprepro_parser.h:388
void clear()
Record that this symbol is empty.
Definition: apr_parser.cc:263
int yydebug_
Definition: aprepro_parser.h:387
int symbol_number_type
Symbol type: an internal symbol number.
Definition: aprepro_parser.h:191
unsigned char token_number_type
Internal symbol number for tokens (subsumed by symbol_number_type).
Definition: aprepro_parser.h:197
void move(basic_symbol &s)
Destructive move, s is emptied into this.
Definition: apr_parser.cc:235
Definition: aprepro_parser.h:155
stack< stack_symbol_type > stack_type
Stack type.
Definition: aprepro_parser.h:451
Definition: aprepro_parser.h:177
Parser(class Aprepro &aprepro_yyarg)
Build a parser object.
Definition: apr_parser.cc:187
token_type token() const
The token.
Definition: aprepro_parser.h:160
Definition: aprepro_parser.h:151
Base super_type
Alias to Base.
Definition: aprepro_parser.h:208
state_type yy_lr_goto_state_(state_type yystate, int yysym)
Definition: apr_parser.cc:351
static const unsigned short int yytable_[]
Definition: aprepro_parser.h:359
Definition: aprepro_parser.h:181
Definition: aprepro_parser.h:167
Definition: aprepro_parser.h:430
Definition: aprepro_parser.h:154
void clear()
Record that this symbol is empty.
Definition: apr_parser.cc:248
Definition: aprepro_parser.h:165
syntax_error(const std::string &m)
Definition: apr_parser.cc:202
Definition: aprepro_parser.h:145
int state_type
State numbers.
Definition: aprepro_parser.h:314
static const unsigned char yyr1_[]
Definition: aprepro_parser.h:368
Definition: aprepro_parser.h:180
~basic_symbol()
Destroy the symbol.
Definition: apr_parser.cc:226
Type access provider for token (enum) based symbols.
Definition: aprepro_parser.h:243
virtual ~Parser()
Definition: apr_parser.cc:196
debug_level_type debug_level() const YY_ATTRIBUTE_PURE
The current debugging level.
Definition: apr_parser.cc:346
virtual std::string yysyntax_error_(state_type yystate, const symbol_type &yyla) const
Definition: apr_parser.cc:1956
void yypush_(const char *m, stack_symbol_type &s)
Definition: apr_parser.cc:332
Definition: aprepro_parser.h:162
Definition: aprepro_parser.h:153
Number of nonterminal symbols.
Definition: aprepro_parser.h:478
virtual void error(const std::string &msg)
Definition: apr_parser.cc:2380
Definition: aprepro_parser.h:476
Definition: aprepro_parser.h:183
Definition: aprepro_parser.h:142
Definition: aprepro_parser.h:140
A Bison parser.
Definition: aprepro_parser.h:108
Termination state number.
Definition: aprepro_parser.h:479
by_type()
Default constructor.
Definition: apr_parser.cc:242
Definition: aprepro_parser.h:157
Definition: aprepro_parser.h:205
Definition: aprepro_parser.h:169
void set_debug_stream(std::ostream &)
Set the current debugging stream.
Definition: apr_parser.cc:344
virtual int parse()
Definition: apr_parser.cc:364
stack_type yystack_
The stack.
Definition: aprepro_parser.h:454
Definition: aprepro_parser.h:480
Last index in yytable_.
Definition: aprepro_parser.h:477
Definition: apr_aprepro.cc:57
static const unsigned char yystos_[]
Definition: aprepro_parser.h:365
yytokentype
Definition: aprepro_parser.h:136
int debug_level_type
Type for debugging levels.
Definition: aprepro_parser.h:294
Definition: aprepro_parser.h:164
void set_debug_level(debug_level_type l)
Set the current debugging level.
Definition: apr_parser.cc:348
basic_symbol()
Default constructor.
Definition: apr_parser.cc:205
symbol_number_type type_get() const
Definition: apr_parser.cc:273
static const signed char yypgoto_[]
Definition: aprepro_parser.h:351
Definition: aprepro_parser.h:144
static const signed char yypact_ninf_
Definition: aprepro_parser.h:334
Definition: aprepro_parser.h:194
static bool yy_pact_value_is_default_(int yyvalue)
Definition: apr_parser.cc:360
struct array * arrval
Definition: aprepro_parser.h:119
void yypop_(unsigned int n=1)
Pop n symbols the three stacks.
Definition: apr_parser.cc:339