44#ifndef YY_SLAMPARSER_BISON_PARSER_H_INCLUDED
45#define YY_SLAMPARSER_BISON_PARSER_H_INCLUDED
53#if defined __cplusplus
54#define YY_CPLUSPLUS __cplusplus
56#define YY_CPLUSPLUS 199711L
60#if 201103L <= YY_CPLUSPLUS
61#define YY_MOVE std::move
62#define YY_MOVE_OR_COPY move
63#define YY_MOVE_REF(Type) Type&&
64#define YY_RVREF(Type) Type&&
65#define YY_COPY(Type) Type
68#define YY_MOVE_OR_COPY copy
69#define YY_MOVE_REF(Type) Type&
70#define YY_RVREF(Type) const Type&
71#define YY_COPY(Type) const Type&
75#if 201103L <= YY_CPLUSPLUS
76#define YY_NOEXCEPT noexcept
80#define YY_NOTHROW throw()
84#if 201703 <= YY_CPLUSPLUS
85#define YY_CONSTEXPR constexpr
91#ifndef YY_ATTRIBUTE_PURE
92#if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
93#define YY_ATTRIBUTE_PURE __attribute__((__pure__))
95#define YY_ATTRIBUTE_PURE
99#ifndef YY_ATTRIBUTE_UNUSED
100#if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
101#define YY_ATTRIBUTE_UNUSED __attribute__((__unused__))
103#define YY_ATTRIBUTE_UNUSED
108#if !defined lint || defined __GNUC__
109#define YY_USE(E) ((void)(E))
115#if defined __GNUC__ && !defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__
116#if __GNUC__ * 100 + __GNUC_MINOR__ < 407
117#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
118 _Pragma("GCC diagnostic push") \
119 _Pragma("GCC diagnostic ignored \"-Wuninitialized\"")
121#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
122 _Pragma("GCC diagnostic push") \
123 _Pragma("GCC diagnostic ignored \"-Wuninitialized\"") \
124 _Pragma("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
126#define YY_IGNORE_MAYBE_UNINITIALIZED_END _Pragma("GCC diagnostic pop")
128#define YY_INITIAL_VALUE(Value) Value
130#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
131#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
132#define YY_IGNORE_MAYBE_UNINITIALIZED_END
134#ifndef YY_INITIAL_VALUE
135#define YY_INITIAL_VALUE(Value)
138#if defined __cplusplus && defined __GNUC__ && !defined __ICC && 6 <= __GNUC__
139#define YY_IGNORE_USELESS_CAST_BEGIN \
140 _Pragma("GCC diagnostic push") \
141 _Pragma("GCC diagnostic ignored \"-Wuseless-cast\"")
142#define YY_IGNORE_USELESS_CAST_END _Pragma("GCC diagnostic pop")
144#ifndef YY_IGNORE_USELESS_CAST_BEGIN
145#define YY_IGNORE_USELESS_CAST_BEGIN
146#define YY_IGNORE_USELESS_CAST_END
151#define YY_CAST(Type, Val) static_cast<Type>(Val)
152#define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type>(Val)
154#define YY_CAST(Type, Val) ((Type)(Val))
155#define YY_REINTERPRET_CAST(Type, Val) ((Type)(Val))
159#if defined __cplusplus
160#if 201103L <= __cplusplus
161#define YY_NULLPTR nullptr
166#define YY_NULLPTR ((void*)0)
171#ifndef SLAMPARSERDEBUG
174#define SLAMPARSERDEBUG 1
176#define SLAMPARSERDEBUG 0
179#define SLAMPARSERDEBUG 0
184#line 190 "bison_parser.h"
189#ifdef SLAMPARSERSTYPE
192 "bison: do not #define SLAMPARSERSTYPE in C++, use %define api.value.type"
206#line 216 "bison_parser.h"
231 SLAMPARSEREMPTY = -2,
233 SLAMPARSERerror = 256,
234 SLAMPARSERUNDEF = 257,
304 template <
typename Base>
312#if 201103L <= YY_CPLUSPLUS
315 : Base(
std::move(that)),
316 value(
std::move(that.value)),
321 basic_symbol(
const basic_symbol& that);
323 basic_symbol(
typename Base::kind_type t,
YY_MOVE_REF(location_type) l);
326 basic_symbol(
typename Base::kind_type t,
YY_RVREF(value_type) v,
337 return Parser::symbol_name(this->kind());
356#if YY_CPLUSPLUS < 201103L
370#if 201103L <= YY_CPLUSPLUS
409#if 201103L <= YY_CPLUSPLUS
428 void set_debug_stream(
std::ostream&);
431 typedef
int debug_level_type;
435 void set_debug_level(debug_level_type l);
441 virtual void error(
const location_type& loc,
const std::string& msg);
468#if YY_CPLUSPLUS < 201103L
484 virtual std::string yysyntax_error_(
const context& yyctx)
const;
492 static bool yy_pact_value_is_default_(
int yyvalue)
YY_NOEXCEPT;
496 static bool yy_table_value_is_error_(
int yyvalue)
YY_NOEXCEPT;
507 static std::string yytnamerr_(
const char* yystr);
510 static const char*
const yytname_[];
515 static const signed char yypact_[];
520 static const signed char yydefact_[];
523 static const signed char yypgoto_[];
526 static const signed char yydefgoto_[];
531 static const signed char yytable_[];
533 static const signed char yycheck_[];
537 static const signed char yystos_[];
540 static const signed char yyr1_[];
544 static const signed char yyr2_[];
548 static const unsigned char yyrline_[];
550 virtual void yy_reduce_print_(
int r)
const;
552 virtual void yy_stack_print_()
const;
557 std::ostream* yycdebug_;
562 template <
typename Base>
570 template <
typename Base>
600 enum { empty_state = 0 };
617#if YY_CPLUSPLUS < 201103L
629 template <
typename T,
typename S = std::vector<T> >
640#if 201103L <= YY_CPLUSPLUS
664 operator[](0).move(t);
669 for (; 0 < n; --n) seq_.pop_back();
698#if YY_CPLUSPLUS < 201103L
744#line 833 "bison_parser.h"
#define YY_MOVE_REF(Type)
#define YY_ATTRIBUTE_PURE
const location_type & location() const YY_NOEXCEPT
symbol_kind_type token() const YY_NOEXCEPT
const symbol_type & lookahead() const YY_NOEXCEPT
const symbol_type & yyla_
Present a slice of the top of a stack.
const T & operator[](index_type i) const
slice(const stack &stack, index_type range) YY_NOEXCEPT
A stack with random access from its top.
stack(size_type n=200) YY_NOEXCEPT
std::ptrdiff_t index_type
index_type size() const YY_NOEXCEPT
Number of elements on the stack.
T & operator[](index_type i)
const T & operator[](index_type i) const
const_iterator begin() const YY_NOEXCEPT
Iterator on top of the stack (going downwards).
void pop(std::ptrdiff_t n=1) YY_NOEXCEPT
Pop elements from the stack.
stack & operator=(const stack &)
Non copyable.
void push(YY_MOVE_REF(T) t)
void clear() YY_NOEXCEPT
Pop all elements from the stack.
S::const_iterator const_iterator
stack(const stack &)
Non copyable.
const_iterator end() const YY_NOEXCEPT
Bottom of the stack.
S seq_
The wrapped container.
Parser(const Parser &)
Non copyable.
value_type semantic_type
Backward compatibility (Bison 3.8).
Parser & operator=(const Parser &)
Non copyable.
stack< stack_symbol_type > stack_type
Stack type.
location location_type
Symbol locations.
stack_type yystack_
The stack.
symbol_kind::symbol_kind_type symbol_kind_type
(Internal) symbol kind.
signed char state_type
Stored state numbers (used for stacks).
static const symbol_kind_type YYNTOKENS
The number of tokens.
token::token_kind_type token_kind_type
Token kind, as returned by yylex.
static const signed char yypact_ninf_
token_kind_type token_type
Backward compatibility alias (Bison 3.6).
static const signed char yytable_ninf_
Two points in a source file.
location(const position &b, const position &e)
Construct a location from b to e.
Base super_type
Alias to Base.
~basic_symbol()
Destroy the symbol.
basic_symbol & operator=(const basic_symbol &that)
Assignment operator.
std::string name() const YY_NOEXCEPT
The user-facing name of this symbol.
basic_symbol() YY_NOEXCEPT
Default constructor.
void clear() YY_NOEXCEPT
Destroy contents, and record that is empty.
Type access provider for token (enum) based symbols.
token_kind_type kind_type
The symbol kind as needed by the constructor.
Type access provider for state based symbols.
state_type kind_type
The symbol kind as needed by the constructor.
"Internal" symbol: element of the stack.
basic_symbol< by_state > super_type
Superclass.
@ YYNTOKENS
Number of tokens.
"External" symbols: returned by the scanner.
Syntax errors thrown from user actions.
~syntax_error() YY_NOEXCEPT YY_NOTHROW
syntax_error(const location_type &l, const std::string &m)
syntax_error(const syntax_error &s)
token_kind_type yytokentype
Backward compatibility alias (Bison 3.6).
class CommandNode * commandNode
std::vector< int > * intList