44 #ifndef YY_YY_ROSTLAB_BLAST_PARSER_PARSER_H_INCLUDED
45 # define YY_YY_ROSTLAB_BLAST_PARSER_PARSER_H_INCLUDED
47 #line 24 "blast-parser-parser.ypp"
51 namespace rostlab {
namespace blast {
class parser_driver; } }
53 #line 54 "rostlab/blast-parser-parser.h"
62 #if defined __cplusplus
63 # define YY_CPLUSPLUS __cplusplus
65 # define YY_CPLUSPLUS 199711L
69 #if 201103L <= YY_CPLUSPLUS
70 # define YY_MOVE std::move
71 # define YY_MOVE_OR_COPY move
72 # define YY_MOVE_REF(Type) Type&&
73 # define YY_RVREF(Type) Type&&
74 # define YY_COPY(Type) Type
77 # define YY_MOVE_OR_COPY copy
78 # define YY_MOVE_REF(Type) Type&
79 # define YY_RVREF(Type) const Type&
80 # define YY_COPY(Type) const Type&
84 #if 201103L <= YY_CPLUSPLUS
85 # define YY_NOEXCEPT noexcept
89 # define YY_NOTHROW throw ()
93 #if 201703 <= YY_CPLUSPLUS
94 # define YY_CONSTEXPR constexpr
101 #ifndef YY_ATTRIBUTE_PURE
102 # if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
103 # define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
105 # define YY_ATTRIBUTE_PURE
109 #ifndef YY_ATTRIBUTE_UNUSED
110 # if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
111 # define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
113 # define YY_ATTRIBUTE_UNUSED
118 #if ! defined lint || defined __GNUC__
119 # define YYUSE(E) ((void) (E))
124 #if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
126 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
127 _Pragma ("GCC diagnostic push") \
128 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \
129 _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
130 # define YY_IGNORE_MAYBE_UNINITIALIZED_END \
131 _Pragma ("GCC diagnostic pop")
133 # define YY_INITIAL_VALUE(Value) Value
135 #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
136 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
137 # define YY_IGNORE_MAYBE_UNINITIALIZED_END
139 #ifndef YY_INITIAL_VALUE
140 # define YY_INITIAL_VALUE(Value)
143 #if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
144 # define YY_IGNORE_USELESS_CAST_BEGIN \
145 _Pragma ("GCC diagnostic push") \
146 _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
147 # define YY_IGNORE_USELESS_CAST_END \
148 _Pragma ("GCC diagnostic pop")
150 #ifndef YY_IGNORE_USELESS_CAST_BEGIN
151 # define YY_IGNORE_USELESS_CAST_BEGIN
152 # define YY_IGNORE_USELESS_CAST_END
157 # define YY_CAST(Type, Val) static_cast<Type> (Val)
158 # define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val)
160 # define YY_CAST(Type, Val) ((Type) (Val))
161 # define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))
165 # if defined __cplusplus
166 # if 201103L <= __cplusplus
167 # define YY_NULLPTR nullptr
169 # define YY_NULLPTR 0
172 # define YY_NULLPTR ((void*)0)
181 #line 22 "blast-parser-parser.ypp"
182 namespace rostlab {
namespace blast {
183 #line 184 "rostlab/blast-parser-parser.h"
196 #line 47 "blast-parser-parser.ypp"
202 #line 203 "rostlab/blast-parser-parser.h"
215 : std::runtime_error (m)
220 : std::runtime_error (s.what ())
242 ONELINE_DESC_HEADER = 265,
243 SEQ_FOUND_AGAIN = 266,
281 template <
typename Base>
293 #if 201103L <= YY_CPLUSPLUS
334 #if YY_CPLUSPLUS < 201103L
346 #if 201103L <= YY_CPLUSPLUS
390 virtual int parse ();
422 typedef signed char state_type;
427 virtual std::string yysyntax_error_ (state_type yystate,
433 static state_type yy_lr_goto_state_ (state_type yystate,
int yysym);
437 static bool yy_pact_value_is_default_ (
int yyvalue);
441 static bool yy_table_value_is_error_ (
int yyvalue);
443 static const signed char yypact_ninf_;
444 static const signed char yytable_ninf_;
454 static const signed char yypact_[];
459 static const signed char yydefact_[];
462 static const signed char yypgoto_[];
465 static const signed char yydefgoto_[];
470 static const signed char yytable_[];
472 static const signed char yycheck_[];
476 static const signed char yystos_[];
479 static const signed char yyr1_[];
482 static const signed char yyr2_[];
486 static std::string yytnamerr_ (
const char *n);
490 static const char*
const yytname_[];
493 static const unsigned char yyrline_[];
495 virtual void yy_reduce_print_ (
int r);
497 virtual void yystack_print_ ();
502 std::ostream* yycdebug_;
507 template <
typename Base>
515 template <
typename Base>
526 typedef state_type kind_type;
538 void move (by_state& that);
546 enum { empty_state = 0 };
554 struct stack_symbol_type : basic_symbol<by_state>
557 typedef basic_symbol<by_state> super_type;
559 stack_symbol_type ();
561 stack_symbol_type (
YY_RVREF (stack_symbol_type) that);
563 stack_symbol_type (state_type s,
YY_MOVE_REF (symbol_type) sym);
564 #if YY_CPLUSPLUS < 201103L
565 stack_symbol_type& operator= (stack_symbol_type& that);
571 stack_symbol_type& operator= (
const stack_symbol_type& that);
576 template <
typename T,
typename S = std::vector<T> >
581 typedef typename S::reverse_iterator iterator;
582 typedef typename S::const_reverse_iterator const_iterator;
583 typedef typename S::size_type size_type;
584 typedef typename std::ptrdiff_t index_type;
586 stack (size_type n = 200)
594 operator[] (index_type i)
const
596 return seq_[size_type (size () - 1 - i)];
603 operator[] (index_type i)
605 return seq_[size_type (size () - 1 - i)];
614 seq_.push_back (T ());
615 operator[] (0).move (t);
637 return index_type (seq_.size ());
643 return std::ptrdiff_t (size ());
650 return seq_.rbegin ();
664 slice (
const stack& stack, index_type range)
670 operator[] (index_type i)
const
672 return stack_[range_ - i];
681 stack (
const stack&);
682 stack& operator= (
const stack&);
689 typedef stack<stack_symbol_type> stack_type;
699 void yypush_ (
const char* m,
YY_MOVE_REF (stack_symbol_type) sym);
707 void yypush_ (
const char* m, state_type s,
YY_MOVE_REF (symbol_type) sym);
710 void yypop_ (
int n = 1);
733 #line 22 "blast-parser-parser.ypp"
735 #line 736 "rostlab/blast-parser-parser.h"
741 #endif // !YY_YY_ROSTLAB_BLAST_PARSER_PARSER_H_INCLUDED