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" // lalr1.cc:401 51 namespace rostlab {
namespace blast {
class parser_driver; } }
53 #line 54 "rostlab/blast-parser-parser.h" // lalr1.cc:401 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 102 # if (defined __GNUC__ \ 103 && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ 104 || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C 105 # define YY_ATTRIBUTE(Spec) __attribute__(Spec) 107 # define YY_ATTRIBUTE(Spec) 111 #ifndef YY_ATTRIBUTE_PURE 112 # define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) 115 #ifndef YY_ATTRIBUTE_UNUSED 116 # define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) 120 #if ! defined lint || defined __GNUC__ 121 # define YYUSE(E) ((void) (E)) 126 #if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ 128 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ 129 _Pragma ("GCC diagnostic push") \ 130 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ 131 _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") 132 # define YY_IGNORE_MAYBE_UNINITIALIZED_END \ 133 _Pragma ("GCC diagnostic pop") 135 # define YY_INITIAL_VALUE(Value) Value 137 #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 138 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 139 # define YY_IGNORE_MAYBE_UNINITIALIZED_END 141 #ifndef YY_INITIAL_VALUE 142 # define YY_INITIAL_VALUE(Value) 146 # if defined __cplusplus 147 # if 201103L <= __cplusplus 148 # define YY_NULLPTR nullptr 150 # define YY_NULLPTR 0 153 # define YY_NULLPTR ((void*)0) 162 #line 22 "blast-parser-parser.ypp" // lalr1.cc:401 163 namespace rostlab {
namespace blast {
164 #line 165 "rostlab/blast-parser-parser.h" // lalr1.cc:401 176 #line 47 "/build/librostlab-blast-1.0.1/lib/blast-parser-parser.ypp" // lalr1.cc:401 182 #line 183 "rostlab/blast-parser-parser.h" // lalr1.cc:401 194 : std::runtime_error (m)
199 : std::runtime_error (s.what ())
221 ONELINE_DESC_HEADER = 265,
222 SEQ_FOUND_AGAIN = 266,
249 enum { empty_symbol = -2 };
260 template <
typename Base>
272 #if 201103L <= YY_CPLUSPLUS 313 #if YY_CPLUSPLUS < 201103L 325 #if 201103L <= YY_CPLUSPLUS 372 virtual int parse ();
378 void set_debug_stream (std::ostream &);
383 debug_level_type debug_level () const YY_ATTRIBUTE_PURE;
385 void set_debug_level (debug_level_type l);
391 virtual void error (
const location_type& loc,
const std::string& msg);
404 typedef int state_type;
409 virtual std::string yysyntax_error_ (state_type yystate,
415 state_type yy_lr_goto_state_ (state_type yystate,
int yysym);
419 static bool yy_pact_value_is_default_ (
int yyvalue);
423 static bool yy_table_value_is_error_ (
int yyvalue);
425 static const signed char yypact_ninf_;
426 static const signed char yytable_ninf_;
429 static token_number_type yytranslate_ (
int t);
434 static const signed char yypact_[];
439 static const unsigned char yydefact_[];
442 static const signed char yypgoto_[];
445 static const signed char yydefgoto_[];
450 static const unsigned char yytable_[];
452 static const unsigned char yycheck_[];
456 static const unsigned char yystos_[];
459 static const unsigned char yyr1_[];
462 static const unsigned char yyr2_[];
466 static std::string yytnamerr_ (
const char *n);
470 static const char*
const yytname_[];
473 static const unsigned char yyrline_[];
475 virtual void yy_reduce_print_ (
int r);
477 virtual void yystack_print_ ();
482 std::ostream* yycdebug_;
487 template <
typename Base>
495 template <
typename Base>
506 typedef state_type kind_type;
512 by_state (const by_state& that) YY_NOEXCEPT;
515 void clear () YY_NOEXCEPT;
518 void move (by_state& that);
522 symbol_number_type type_get () const YY_NOEXCEPT;
525 enum { empty_state = -1 };
538 stack_symbol_type ();
540 stack_symbol_type (
YY_RVREF (stack_symbol_type) that);
543 #if YY_CPLUSPLUS < 201103L 544 stack_symbol_type& operator= (stack_symbol_type& that);
551 template <
typename T,
typename S = std::vector<T> >
556 typedef typename S::reverse_iterator iterator;
557 typedef typename S::const_reverse_iterator const_iterator;
558 typedef typename S::size_type size_type;
560 stack (size_type n = 200)
568 operator[] (size_type i)
570 return seq_[size () - 1 - i];
579 return operator[] (size_type (i));
586 operator[] (size_type i)
const 588 return seq_[size () - 1 - i];
595 operator[] (
int i)
const 597 return operator[] (size_type (i));
606 seq_.push_back (T ());
607 operator[] (0).move (t);
636 return seq_.rbegin ();
650 slice (
const stack& stack,
int range)
656 operator[] (
int i)
const 658 return stack_[range_ - i];
667 stack (
const stack&);
668 stack& operator= (
const stack&);
675 typedef stack<stack_symbol_type> stack_type;
685 void yypush_ (
const char* m,
YY_MOVE_REF (stack_symbol_type) sym);
696 void yypop_ (
int n = 1);
717 #line 22 "blast-parser-parser.ypp" // lalr1.cc:401 719 #line 720 "rostlab/blast-parser-parser.h" // lalr1.cc:401 724 #endif // !YY_YY_ROSTLAB_BLAST_PARSER_PARSER_H_INCLUDED
~basic_symbol()
Destroy the symbol.
"External" symbols: returned by the scanner.
Type access provider for token (enum) based symbols.
unsigned char token_number_type
Internal symbol number for tokens (subsumed by symbol_number_type).
basic_symbol()
Default constructor.
Present a slice of the top of a stack.
syntax_error(const location_type &l, const std::string &m)
int debug_level_type
Type for debugging levels.
#define YY_ATTRIBUTE_PURE
void clear()
Destroy contents, and record that is empty.
location_type location
The location.
Two points in a source file.
slice(const stack &stack, int range)
token::yytokentype token_type
(External) token type, as returned by yylex.
int symbol_number_type
Symbol type: an internal symbol number.
#define YY_MOVE_REF(Type)
token_type kind_type
The symbol type as needed by the constructor.
syntax_error(const syntax_error &s)
Syntax errors thrown from user actions.
semantic_type value
The semantic value.
Blast (default, -m 0) output parser.
Base super_type
Alias to Base.