40 #ifndef YY_YY_ROSTLAB_BLAST_PARSER_PARSER_H_INCLUDED 41 # define YY_YY_ROSTLAB_BLAST_PARSER_PARSER_H_INCLUDED 43 #line 24 "blast-parser-parser.ypp" // lalr1.cc:377 47 namespace rostlab {
namespace blast {
class parser_driver; } }
49 #line 50 "rostlab/blast-parser-parser.h" // lalr1.cc:377 62 # if (defined __GNUC__ \ 63 && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ 64 || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C 65 # define YY_ATTRIBUTE(Spec) __attribute__(Spec) 67 # define YY_ATTRIBUTE(Spec) 71 #ifndef YY_ATTRIBUTE_PURE 72 # define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) 75 #ifndef YY_ATTRIBUTE_UNUSED 76 # define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) 79 #if !defined _Noreturn \ 80 && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112) 81 # if defined _MSC_VER && 1200 <= _MSC_VER 82 # define _Noreturn __declspec (noreturn) 84 # define _Noreturn YY_ATTRIBUTE ((__noreturn__)) 89 #if ! defined lint || defined __GNUC__ 90 # define YYUSE(E) ((void) (E)) 95 #if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ 97 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ 98 _Pragma ("GCC diagnostic push") \ 99 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ 100 _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") 101 # define YY_IGNORE_MAYBE_UNINITIALIZED_END \ 102 _Pragma ("GCC diagnostic pop") 104 # define YY_INITIAL_VALUE(Value) Value 106 #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 107 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 108 # define YY_IGNORE_MAYBE_UNINITIALIZED_END 110 #ifndef YY_INITIAL_VALUE 111 # define YY_INITIAL_VALUE(Value) 119 #line 22 "blast-parser-parser.ypp" // lalr1.cc:377 120 namespace rostlab {
namespace blast {
121 #line 122 "rostlab/blast-parser-parser.h" // lalr1.cc:377 135 #line 47 "/build/librostlab-blast-GszSBX/librostlab-blast-1.0.1/lib/blast-parser-parser.ypp" // lalr1.cc:377 141 #line 142 "rostlab/blast-parser-parser.h" // lalr1.cc:377 152 syntax_error (
const location_type& l,
const std::string& m);
169 ONELINE_DESC_HEADER = 265,
170 SEQ_FOUND_AGAIN = 266,
197 enum { empty_symbol = -2 };
208 template <
typename Base>
222 const location_type& l);
226 const semantic_type& v,
227 const location_type& l);
275 symbol_number_type type_get ()
const;
278 token_type
token ()
const;
296 virtual int parse ();
302 void set_debug_stream (std::ostream &);
309 void set_debug_level (debug_level_type l);
315 virtual void error (
const location_type& loc,
const std::string& msg);
326 typedef int state_type;
331 virtual std::string yysyntax_error_ (state_type yystate,
332 const symbol_type& yyla)
const;
337 state_type yy_lr_goto_state_ (state_type yystate,
int yysym);
341 static bool yy_pact_value_is_default_ (
int yyvalue);
345 static bool yy_table_value_is_error_ (
int yyvalue);
347 static const signed char yypact_ninf_;
348 static const signed char yytable_ninf_;
351 static token_number_type yytranslate_ (
int t);
356 static const signed char yypact_[];
361 static const unsigned char yydefact_[];
364 static const signed char yypgoto_[];
367 static const signed char yydefgoto_[];
372 static const unsigned char yytable_[];
374 static const unsigned char yycheck_[];
378 static const unsigned char yystos_[];
381 static const unsigned char yyr1_[];
384 static const unsigned char yyr2_[];
388 static std::string yytnamerr_ (
const char *n);
392 static const char*
const yytname_[];
395 static const unsigned char yyrline_[];
397 virtual void yy_reduce_print_ (
int r);
399 virtual void yystack_print_ ();
403 std::ostream* yycdebug_;
408 template <
typename Base>
416 template <
typename Base>
427 typedef state_type kind_type;
430 by_state (kind_type s);
433 by_state (
const by_state& other);
439 void move (by_state& that);
443 symbol_number_type type_get ()
const;
446 enum { empty_state = -1 };
459 stack_symbol_type ();
461 stack_symbol_type (state_type s, symbol_type& sym);
463 stack_symbol_type& operator= (
const stack_symbol_type& that);
477 void yypush_ (
const char* m, stack_symbol_type& s);
485 void yypush_ (
const char* m, state_type s, symbol_type& sym);
488 void yypop_ (
unsigned int n = 1);
509 #line 22 "blast-parser-parser.ypp" // lalr1.cc:377 511 #line 512 "rostlab/blast-parser-parser.h" // lalr1.cc:377 516 #endif // !YY_YY_ROSTLAB_BLAST_PARSER_PARSER_H_INCLUDED
Type access provider for token (enum) based symbols.
unsigned char token_number_type
Internal symbol number for tokens (subsumed by symbol_number_type).
int debug_level_type
Type for debugging levels.
#define YY_ATTRIBUTE_PURE
location_type location
The location.
token::yytokentype token_type
(External) token type, as returned by yylex.
int symbol_number_type
Symbol type: an internal symbol number.
token_type kind_type
The symbol type as needed by the constructor.
Syntax errors thrown from user actions.
semantic_type value
The semantic value.
Blast (default, -m 0) output parser.
Base super_type
Alias to Base.
basic_symbol< by_type > symbol_type
"External" symbols: returned by the scanner.