44 #ifndef YY_TLYY_PARSETL_HH_INCLUDED 45 # define YY_TLYY_PARSETL_HH_INCLUDED 47 #line 35 "parsetl.yy" // lalr1.cc:401 51 #include <spot/tl/parse.hh> 53 #include <spot/tl/print.hh> 57 #line 58 "parsetl.hh" // lalr1.cc:401 66 #if defined __cplusplus 67 # define YY_CPLUSPLUS __cplusplus 69 # define YY_CPLUSPLUS 199711L 73 #if 201103L <= YY_CPLUSPLUS 74 # define YY_MOVE std::move 75 # define YY_MOVE_OR_COPY move 76 # define YY_MOVE_REF(Type) Type&& 77 # define YY_RVREF(Type) Type&& 78 # define YY_COPY(Type) Type 81 # define YY_MOVE_OR_COPY copy 82 # define YY_MOVE_REF(Type) Type& 83 # define YY_RVREF(Type) const Type& 84 # define YY_COPY(Type) const Type& 88 #if 201103L <= YY_CPLUSPLUS 89 # define YY_NOEXCEPT noexcept 93 # define YY_NOTHROW throw () 97 #if 201703 <= YY_CPLUSPLUS 98 # define YY_CONSTEXPR constexpr 100 # define YY_CONSTEXPR 106 # if (defined __GNUC__ \ 107 && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ 108 || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C 109 # define YY_ATTRIBUTE(Spec) __attribute__(Spec) 111 # define YY_ATTRIBUTE(Spec) 115 #ifndef YY_ATTRIBUTE_PURE 116 # define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) 119 #ifndef YY_ATTRIBUTE_UNUSED 120 # define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) 124 #if ! defined lint || defined __GNUC__ 125 # define YYUSE(E) ((void) (E)) 130 #if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ 132 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ 133 _Pragma ("GCC diagnostic push") \ 134 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ 135 _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") 136 # define YY_IGNORE_MAYBE_UNINITIALIZED_END \ 137 _Pragma ("GCC diagnostic pop") 139 # define YY_INITIAL_VALUE(Value) Value 141 #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 142 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 143 # define YY_IGNORE_MAYBE_UNINITIALIZED_END 145 #ifndef YY_INITIAL_VALUE 146 # define YY_INITIAL_VALUE(Value) 150 # if defined __cplusplus 151 # if 201103L <= __cplusplus 152 # define YY_NULLPTR nullptr 154 # define YY_NULLPTR 0 157 # define YY_NULLPTR ((void*)0) 168 #line 169 "parsetl.hh" // lalr1.cc:401 180 #line 49 "parsetl.yy" // lalr1.cc:401 187 #line 188 "parsetl.hh" // lalr1.cc:401 198 syntax_error (
const location_type& l,
const std::string& m)
199 : std::runtime_error (m)
204 : std::runtime_error (s.what ())
205 , location (s.location)
210 location_type location;
226 BRA_BANG_BLOCK = 266,
229 BRACE_BANG_CLOSE = 269,
253 OP_SQBKT_CLOSE = 293,
259 OP_UCONCAT_NONO = 299,
260 OP_ECONCAT_NONO = 300,
279 enum { empty_symbol = -2 };
290 template <
typename Base>
302 #if 201103L <= YY_CPLUSPLUS 311 YY_MOVE_REF (location_type) l);
315 YY_RVREF (semantic_type) v,
316 YY_RVREF (location_type) l);
331 bool empty ()
const YY_NOEXCEPT;
343 #if YY_CPLUSPLUS < 201103L 355 #if 201103L <= YY_CPLUSPLUS 377 symbol_number_type type_get () const YY_NOEXCEPT;
380 token_type
token () const YY_NOEXCEPT;
402 virtual int parse ();
405 std::ostream& debug_stream ()
const YY_ATTRIBUTE_PURE;
408 void set_debug_stream (std::ostream &);
413 debug_level_type debug_level () const YY_ATTRIBUTE_PURE;
415 void set_debug_level (debug_level_type l);
421 virtual void error (
const location_type& loc,
const std::string& msg);
434 typedef int state_type;
439 virtual std::string yysyntax_error_ (state_type yystate,
445 state_type yy_lr_goto_state_ (state_type yystate,
int yysym);
449 static bool yy_pact_value_is_default_ (
int yyvalue);
453 static bool yy_table_value_is_error_ (
int yyvalue);
455 static const signed char yypact_ninf_;
456 static const signed char yytable_ninf_;
459 static token_number_type yytranslate_ (
int t);
464 static const short yypact_[];
469 static const unsigned char yydefact_[];
472 static const short yypgoto_[];
475 static const short yydefgoto_[];
480 static const short yytable_[];
482 static const short yycheck_[];
486 static const unsigned char yystos_[];
489 static const unsigned char yyr1_[];
492 static const unsigned char yyr2_[];
496 static std::string yytnamerr_ (
const char *n);
500 static const char*
const yytname_[];
503 static const unsigned short yyrline_[];
505 virtual void yy_reduce_print_ (
int r);
507 virtual void yystack_print_ ();
512 std::ostream* yycdebug_;
517 template <
typename Base>
525 template <
typename Base>
533 by_state () YY_NOEXCEPT;
536 typedef state_type kind_type;
539 by_state (kind_type s) YY_NOEXCEPT;
542 by_state (const by_state& that) YY_NOEXCEPT;
545 void clear () YY_NOEXCEPT;
548 void move (by_state& that);
552 symbol_number_type type_get () const YY_NOEXCEPT;
555 enum { empty_state = -1 };
568 stack_symbol_type ();
570 stack_symbol_type (YY_RVREF (stack_symbol_type) that);
572 stack_symbol_type (state_type s, YY_MOVE_REF (
symbol_type) sym);
573 #if YY_CPLUSPLUS < 201103L 574 stack_symbol_type& operator= (stack_symbol_type& that);
581 template <
typename T,
typename S = std::vector<T> >
586 typedef typename S::reverse_iterator iterator;
587 typedef typename S::const_reverse_iterator const_iterator;
588 typedef typename S::size_type size_type;
590 stack (size_type n = 200)
598 operator[] (size_type i)
600 return seq_[size () - 1 - i];
609 return operator[] (size_type (i));
616 operator[] (size_type i)
const 618 return seq_[size () - 1 - i];
625 operator[] (
int i)
const 627 return operator[] (size_type (i));
634 push (YY_MOVE_REF (T) t)
636 seq_.push_back (T ());
637 operator[] (0).move (t);
642 pop (
int n = 1) YY_NOEXCEPT
657 size () const YY_NOEXCEPT
664 begin () const YY_NOEXCEPT
666 return seq_.rbegin ();
671 end () const YY_NOEXCEPT
680 slice (
const stack& stack,
int range)
686 operator[] (
int i)
const 688 return stack_[range_ - i];
697 stack (
const stack&);
698 stack& operator= (
const stack&);
705 typedef stack<stack_symbol_type> stack_type;
715 void yypush_ (
const char* m, YY_MOVE_REF (stack_symbol_type) sym);
723 void yypush_ (
const char* m, state_type s, YY_MOVE_REF (
symbol_type) sym);
726 void yypop_ (
int n = 1);
750 #line 751 "parsetl.hh" // lalr1.cc:401 755 #endif // !YY_TLYY_PARSETL_HH_INCLUDED spot::location location_type
Symbol locations.
Definition: parsetl.hh:193
Definition: parsetl.hh:167
Symbol semantic values.
Definition: parsetl.hh:178
Type access provider for token (enum) based symbols.
Definition: parsetl.hh:350
An environment that describes atomic propositions.
Definition: environment.hh:32
Present a slice of the top of a stack.
Definition: parsetl.hh:677
"External" symbols: returned by the scanner.
Definition: parsetl.hh:389
A Bison parser.
Definition: parsetl.hh:173
semantic_type value
The semantic value.
Definition: parsetl.hh:337
int symbol_number_type
Symbol type: an internal symbol number.
Definition: parsetl.hh:276
token_type kind_type
The symbol type as needed by the constructor.
Definition: parsetl.hh:364
std::list< one_parse_error > parse_error_list
A list of parser diagnostics, as filled by parse.
Definition: parse.hh:42
location_type location
The location.
Definition: parsetl.hh:340
basic_symbol()
Default constructor.
Definition: parsetl.hh:297
void clear()
Destroy contents, and record that is empty.
Definition: parsetl.hh:325
int debug_level_type
Type for debugging levels.
Definition: parsetl.hh:411
Tokens.
Definition: parsetl.hh:214
~basic_symbol()
Destroy the symbol.
Definition: parsetl.hh:319
Definition: parsetl.hh:55
token::yytokentype token_type
(External) token type, as returned by yylex.
Definition: parsetl.hh:273
Definition: parsetl.hh:291
Actual storage for formula nodes.
Definition: formula.hh:107
Definition: parseaut.hh:430
Syntax errors thrown from user actions.
Definition: parsetl.hh:196
Base super_type
Alias to Base.
Definition: parsetl.hh:294
unsigned char token_number_type
Internal symbol number for tokens (subsumed by symbol_number_type).
Definition: parsetl.hh:282