40 #ifndef YY_HOAYY_PARSEAUT_HH_INCLUDED
41 # define YY_HOAYY_PARSEAUT_HH_INCLUDED
43 #line 31 "parseaut.yy" // lalr1.cc:372
48 #include <unordered_map>
50 #include "twa/formula2bdd.hh"
52 #include "priv/accmap.hh"
53 #include "tl/parse.hh"
57 typedef std::map<int, bdd> map_t;
64 typedef std::map<std::string, bdd> formula_cache;
66 typedef std::pair<int, std::string*> pair;
74 enum label_style_t { Mixed_Labels, State_Labels, Trans_Labels,
76 enum acc_style_t { Mixed_Acc, State_Acc, Trans_Acc };
82 bool declared =
false;
84 spot::location used_loc;
86 spot::parsed_aut_ptr h;
89 named_tgba_t* namer =
nullptr;
90 spot::acc_mapper_int* acc_mapper =
nullptr;
92 std::vector<bdd> guards;
93 std::vector<bdd>::const_iterator cur_guard;
95 std::vector<state_info> info_states;
96 std::vector<std::pair<spot::location, unsigned>> start;
97 std::unordered_map<std::string, bdd> alias;
98 std::unordered_map<std::string, spot::location> props;
99 spot::location states_loc;
100 spot::location ap_loc;
101 spot::location state_label_loc;
102 spot::location accset_loc;
108 std::vector<std::string>* state_names =
nullptr;
109 std::map<unsigned, unsigned> states_map;
110 std::set<int> ap_set;
117 bool has_state_label =
false;
118 bool ignore_more_ap =
false;
120 bool ignore_acc =
false;
122 bool ignore_acc_silent =
false;
123 bool ignore_more_acc =
false;
126 label_style_t label_style = Mixed_Labels;
127 acc_style_t acc_style = Mixed_Acc;
129 bool accept_all_needed =
false;
130 bool accept_all_seen =
false;
131 bool aliased_states =
false;
133 bool deterministic =
false;
134 bool complete =
false;
135 bool trans_acc_seen =
false;
137 std::map<std::string, spot::location> labels;
147 #line 148 "parseaut.hh" // lalr1.cc:372
152 # include <stdexcept>
159 # if (defined __GNUC__ \
160 && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \
161 || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
162 # define YY_ATTRIBUTE(Spec) __attribute__(Spec)
164 # define YY_ATTRIBUTE(Spec)
168 #ifndef YY_ATTRIBUTE_PURE
169 # define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__))
172 #ifndef YY_ATTRIBUTE_UNUSED
173 # define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
176 #if !defined _Noreturn \
177 && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)
178 # if defined _MSC_VER && 1200 <= _MSC_VER
179 # define _Noreturn __declspec (noreturn)
181 # define _Noreturn YY_ATTRIBUTE ((__noreturn__))
186 #if ! defined lint || defined __GNUC__
187 # define YYUSE(E) ((void) (E))
192 #if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
194 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
195 _Pragma ("GCC diagnostic push") \
196 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
197 _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
198 # define YY_IGNORE_MAYBE_UNINITIALIZED_END \
199 _Pragma ("GCC diagnostic pop")
201 # define YY_INITIAL_VALUE(Value) Value
203 #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
204 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
205 # define YY_IGNORE_MAYBE_UNINITIALIZED_END
207 #ifndef YY_INITIAL_VALUE
208 # define YY_INITIAL_VALUE(Value)
218 #line 219 "parseaut.hh" // lalr1.cc:372
232 #line 142 "parseaut.yy" // lalr1.cc:372
239 std::list<pair>* list;
242 #line 243 "parseaut.hh" // lalr1.cc:372
253 syntax_error (
const location_type& l,
const std::string& m);
254 location_type location;
326 template <
typename Base>
340 const location_type& l);
344 const semantic_type& v,
345 const location_type& l);
383 symbol_number_type
type_get ()
const;
386 token_type
token ()
const;
405 virtual int parse ();
416 debug_level_type
debug_level () const YY_ATTRIBUTE_PURE;
424 virtual void error (
const location_type& loc,
const std::string& msg);
435 typedef int state_type;
440 virtual std::string yysyntax_error_ (state_type yystate,
441 symbol_number_type yytoken)
const;
446 state_type yy_lr_goto_state_ (state_type yystate,
int yysym);
450 static bool yy_pact_value_is_default_ (
int yyvalue);
454 static bool yy_table_value_is_error_ (
int yyvalue);
456 static const short int yypact_ninf_;
457 static const signed char yytable_ninf_;
460 static token_number_type yytranslate_ (
int t);
465 static const short int yypact_[];
470 static const unsigned char yydefact_[];
473 static const short int yypgoto_[];
476 static const short int yydefgoto_[];
481 static const short int yytable_[];
483 static const short int yycheck_[];
487 static const unsigned char yystos_[];
490 static const unsigned char yyr1_[];
493 static const unsigned char yyr2_[];
497 static std::string yytnamerr_ (
const char *n);
501 static const char*
const yytname_[];
504 static const unsigned short int yyrline_[];
506 virtual void yy_reduce_print_ (
int r);
508 virtual void yystack_print_ ();
512 std::ostream* yycdebug_;
517 template <
typename Base>
525 template <
typename Base>
536 typedef state_type kind_type;
539 by_state (kind_type s);
542 by_state (
const by_state& other);
545 void move (by_state& that);
549 symbol_number_type type_get ()
const;
558 struct stack_symbol_type : basic_symbol<by_state>
561 typedef basic_symbol<by_state> super_type;
563 stack_symbol_type ();
565 stack_symbol_type (state_type s, symbol_type& sym);
567 stack_symbol_type& operator= (
const stack_symbol_type& that);
571 typedef stack<stack_symbol_type> stack_type;
581 void yypush_ (
const char* m, stack_symbol_type& s);
589 void yypush_ (
const char* m, state_type s, symbol_type& sym);
592 void yypop_ (
unsigned int n = 1);
611 spot::location initial_loc;
617 #line 618 "parseaut.hh" // lalr1.cc:372
622 #endif // !YY_HOAYY_PARSEAUT_HH_INCLUDED
token_number_type type
Definition: parseaut.hh:392
parser(spot::parse_aut_error_list &error_list_yyarg, result_ &res_yyarg, spot::location initial_loc_yyarg)
Build a parser object.
void move(by_type &that)
Steal the symbol type from that.
debug_level_type debug_level() const
The current debugging level.
Definition: parseaut.hh:78
An environment that describes atomic propositions.
Definition: environment.hh:32
Symbol semantic values.
Definition: parseaut.hh:230
semantic_type value
The semantic value.
Definition: parseaut.hh:353
void move(basic_symbol &s)
Destructive move, s is emptied into this.
Syntax errors thrown from user actions.
Definition: parseaut.hh:251
void set_debug_level(debug_level_type l)
Set the current debugging level.
Definition: formula.hh:1539
Definition: parseaut.hh:80
virtual void error(const location_type &loc, const std::string &msg)
token_type token() const
The token.
std::list< parse_aut_error > parse_aut_error_list
A list of parser diagnostics, as filled by parse.
Definition: public.hh:40
token::yytokentype token_type
(External) token type, as returned by yylex.
Definition: parseaut.hh:312
Definition: parseaut.hh:217
Tokens.
Definition: parseaut.hh:258
std::ostream & debug_stream() const
The current debugging stream.
Type access provider for token (enum) based symbols.
Definition: parseaut.hh:364
token_type kind_type
The symbol type as needed by the constructor.
Definition: parseaut.hh:373
Base super_type
Alias to Base.
Definition: parseaut.hh:330
symbol_number_type type_get() const
unsigned char token_number_type
Internal symbol number for tokens (subsumed by symbol_number_type).
Definition: parseaut.hh:318
basic_symbol< by_type > symbol_type
"External" symbols: returned by the scanner.
Definition: parseaut.hh:396
basic_symbol()
Default constructor.
spot::location location_type
Symbol locations.
Definition: parseaut.hh:248
Definition: parseaut.hh:55
A Bison parser.
Definition: parseaut.hh:225
Definition: parseaut.hh:327
void set_debug_stream(std::ostream &)
Set the current debugging stream.
by_type()
Default constructor.
location_type location
The location.
Definition: parseaut.hh:356
int symbol_number_type
Internal symbol number.
Definition: parseaut.hh:315
int debug_level_type
Type for debugging levels.
Definition: parseaut.hh:414