44 #ifndef YY_TLYY_PARSETL_HH_INCLUDED 45 # define YY_TLYY_PARSETL_HH_INCLUDED 47 #line 36 "parsetl.yy" // lalr1.cc:401 52 #include <spot/tl/parse.hh> 54 #include <spot/tl/print.hh> 58 #line 59 "parsetl.hh" // lalr1.cc:401 67 #if defined __cplusplus 68 # define YY_CPLUSPLUS __cplusplus 70 # define YY_CPLUSPLUS 199711L 74 #if 201103L <= YY_CPLUSPLUS 75 # define YY_MOVE std::move 76 # define YY_MOVE_OR_COPY move 77 # define YY_MOVE_REF(Type) Type&& 78 # define YY_RVREF(Type) Type&& 79 # define YY_COPY(Type) Type 82 # define YY_MOVE_OR_COPY copy 83 # define YY_MOVE_REF(Type) Type& 84 # define YY_RVREF(Type) const Type& 85 # define YY_COPY(Type) const Type& 89 #if 201103L <= YY_CPLUSPLUS 90 # define YY_NOEXCEPT noexcept 94 # define YY_NOTHROW throw () 98 #if 201703 <= YY_CPLUSPLUS 99 # define YY_CONSTEXPR constexpr 101 # define YY_CONSTEXPR 107 # if (defined __GNUC__ \ 108 && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ 109 || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C 110 # define YY_ATTRIBUTE(Spec) __attribute__(Spec) 112 # define YY_ATTRIBUTE(Spec) 116 #ifndef YY_ATTRIBUTE_PURE 117 # define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) 120 #ifndef YY_ATTRIBUTE_UNUSED 121 # define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) 125 #if ! defined lint || defined __GNUC__ 126 # define YYUSE(E) ((void) (E)) 131 #if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ 133 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ 134 _Pragma ("GCC diagnostic push") \ 135 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ 136 _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") 137 # define YY_IGNORE_MAYBE_UNINITIALIZED_END \ 138 _Pragma ("GCC diagnostic pop") 140 # define YY_INITIAL_VALUE(Value) Value 142 #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 143 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 144 # define YY_IGNORE_MAYBE_UNINITIALIZED_END 146 #ifndef YY_INITIAL_VALUE 147 # define YY_INITIAL_VALUE(Value) 151 # if defined __cplusplus 152 # if 201103L <= __cplusplus 153 # define YY_NULLPTR nullptr 155 # define YY_NULLPTR 0 158 # define YY_NULLPTR ((void*)0) 177 #line 178 "parsetl.hh" // lalr1.cc:401 189 #line 52 "parsetl.yy" // lalr1.cc:401 196 #line 197 "parsetl.hh" // lalr1.cc:401 207 syntax_error (
const location_type& l,
const std::string& m)
208 : std::runtime_error (m)
213 : std::runtime_error (s.what ())
214 , location (s.location)
219 location_type location;
235 BRA_BANG_BLOCK = 266,
238 BRACE_BANG_CLOSE = 269,
265 OP_SQBKT_CLOSE = 296,
271 OP_UCONCAT_NONO = 302,
272 OP_ECONCAT_NONO = 303,
273 OP_FIRST_MATCH = 304,
296 enum { empty_symbol = -2 };
307 template <
typename Base>
319 #if 201103L <= YY_CPLUSPLUS 328 YY_MOVE_REF (location_type) l);
332 YY_RVREF (semantic_type) v,
333 YY_RVREF (location_type) l);
348 bool empty ()
const YY_NOEXCEPT;
360 #if YY_CPLUSPLUS < 201103L 372 #if 201103L <= YY_CPLUSPLUS 394 symbol_number_type type_get () const YY_NOEXCEPT;
397 token_type
token () const YY_NOEXCEPT;
419 virtual int parse ();
422 std::ostream& debug_stream ()
const YY_ATTRIBUTE_PURE;
425 void set_debug_stream (std::ostream &);
430 debug_level_type debug_level () const YY_ATTRIBUTE_PURE;
432 void set_debug_level (debug_level_type l);
438 virtual void error (
const location_type& loc,
const std::string& msg);
451 typedef int state_type;
456 virtual std::string yysyntax_error_ (state_type yystate,
462 state_type yy_lr_goto_state_ (state_type yystate,
int yysym);
466 static bool yy_pact_value_is_default_ (
int yyvalue);
470 static bool yy_table_value_is_error_ (
int yyvalue);
472 static const signed char yypact_ninf_;
473 static const signed char yytable_ninf_;
476 static token_number_type yytranslate_ (
int t);
481 static const short yypact_[];
486 static const unsigned char yydefact_[];
489 static const short yypgoto_[];
492 static const short yydefgoto_[];
497 static const short yytable_[];
499 static const short yycheck_[];
503 static const unsigned char yystos_[];
506 static const unsigned char yyr1_[];
509 static const unsigned char yyr2_[];
513 static std::string yytnamerr_ (
const char *n);
517 static const char*
const yytname_[];
520 static const unsigned short yyrline_[];
522 virtual void yy_reduce_print_ (
int r);
524 virtual void yystack_print_ ();
529 std::ostream* yycdebug_;
534 template <
typename Base>
542 template <
typename Base>
550 by_state () YY_NOEXCEPT;
553 typedef state_type kind_type;
556 by_state (kind_type s) YY_NOEXCEPT;
559 by_state (const by_state& that) YY_NOEXCEPT;
562 void clear () YY_NOEXCEPT;
565 void move (by_state& that);
569 symbol_number_type type_get () const YY_NOEXCEPT;
572 enum { empty_state = -1 };
585 stack_symbol_type ();
587 stack_symbol_type (YY_RVREF (stack_symbol_type) that);
589 stack_symbol_type (state_type s, YY_MOVE_REF (
symbol_type) sym);
590 #if YY_CPLUSPLUS < 201103L 591 stack_symbol_type& operator= (stack_symbol_type& that);
598 template <
typename T,
typename S = std::vector<T> >
603 typedef typename S::reverse_iterator iterator;
604 typedef typename S::const_reverse_iterator const_iterator;
605 typedef typename S::size_type size_type;
607 stack (size_type n = 200)
615 operator[] (size_type i)
617 return seq_[size () - 1 - i];
626 return operator[] (size_type (i));
633 operator[] (size_type i)
const 635 return seq_[size () - 1 - i];
642 operator[] (
int i)
const 644 return operator[] (size_type (i));
651 push (YY_MOVE_REF (T) t)
653 seq_.push_back (T ());
654 operator[] (0).move (t);
659 pop (
int n = 1) YY_NOEXCEPT
674 size () const YY_NOEXCEPT
681 begin () const YY_NOEXCEPT
683 return seq_.rbegin ();
688 end () const YY_NOEXCEPT
697 slice (
const stack& stack,
int range)
703 operator[] (
int i)
const 705 return stack_[range_ - i];
714 stack (
const stack&);
715 stack& operator= (
const stack&);
722 typedef stack<stack_symbol_type> stack_type;
732 void yypush_ (
const char* m, YY_MOVE_REF (stack_symbol_type) sym);
740 void yypush_ (
const char* m, state_type s, YY_MOVE_REF (
symbol_type) sym);
743 void yypop_ (
int n = 1);
767 #line 768 "parsetl.hh" // lalr1.cc:401 772 #endif // !YY_TLYY_PARSETL_HH_INCLUDED spot::location location_type
Symbol locations.
Definition: parsetl.hh:202
Definition: parsetl.hh:176
Symbol semantic values.
Definition: parsetl.hh:187
Type access provider for token (enum) based symbols.
Definition: parsetl.hh:367
An environment that describes atomic propositions.
Definition: environment.hh:32
Present a slice of the top of a stack.
Definition: parsetl.hh:694
"External" symbols: returned by the scanner.
Definition: parsetl.hh:406
A Bison parser.
Definition: parsetl.hh:182
semantic_type value
The semantic value.
Definition: parsetl.hh:354
int symbol_number_type
Symbol type: an internal symbol number.
Definition: parsetl.hh:293
token_type kind_type
The symbol type as needed by the constructor.
Definition: parsetl.hh:381
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:357
basic_symbol()
Default constructor.
Definition: parsetl.hh:314
void clear()
Destroy contents, and record that is empty.
Definition: parsetl.hh:342
int debug_level_type
Type for debugging levels.
Definition: parsetl.hh:428
Tokens.
Definition: parsetl.hh:223
~basic_symbol()
Destroy the symbol.
Definition: parsetl.hh:336
Definition: parsetl.hh:56
token::yytokentype token_type
(External) token type, as returned by yylex.
Definition: parsetl.hh:290
Definition: parsetl.hh:308
Actual storage for formula nodes.
Definition: formula.hh:110
Definition: parseaut.hh:453
Syntax errors thrown from user actions.
Definition: parsetl.hh:205
Base super_type
Alias to Base.
Definition: parsetl.hh:311
unsigned char token_number_type
Internal symbol number for tokens (subsumed by symbol_number_type).
Definition: parsetl.hh:299