2022-04-12 13:13:10 -04:00
|
|
|
// A Bison parser, made by GNU Bison 3.8.2.
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// Skeleton interface for Bison LALR(1) parsers in C++
|
|
|
|
|
|
|
|
// Copyright (C) 2002-2015, 2018-2021 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
|
|
|
// You should have received a copy of the GNU General Public License
|
2022-04-12 13:13:10 -04:00
|
|
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// As a special exception, you may create a larger work that contains
|
|
|
|
// part or all of the Bison parser skeleton and distribute that work
|
|
|
|
// under terms of your choice, so long as that work isn't itself a
|
|
|
|
// parser generator using the skeleton or a modified version thereof
|
|
|
|
// as a parser skeleton. Alternatively, if you modify or redistribute
|
|
|
|
// the parser skeleton itself, you may (at your option) remove this
|
|
|
|
// special exception, which will cause the skeleton and the resulting
|
|
|
|
// Bison output files to be licensed under the GNU General Public
|
|
|
|
// License without this special exception.
|
|
|
|
|
|
|
|
// This special exception was added by the Free Software Foundation in
|
|
|
|
// version 2.2 of Bison.
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
** \file parser.hpp
|
2023-05-13 13:24:57 -04:00
|
|
|
** Define the xsk::arc::parser class.
|
2022-02-18 13:07:37 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
// C++ LALR(1) parser skeleton written by Akim Demaille.
|
|
|
|
|
|
|
|
// DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
|
|
|
|
// especially those whose name start with YY_ or yy_. They are
|
|
|
|
// private implementation details that can be changed or removed.
|
|
|
|
|
2023-05-13 13:24:57 -04:00
|
|
|
#ifndef YY_ARC_PARSER_HPP_INCLUDED
|
|
|
|
# define YY_ARC_PARSER_HPP_INCLUDED
|
2022-02-18 13:07:37 -05:00
|
|
|
// "%code requires" blocks.
|
2023-05-13 13:24:57 -04:00
|
|
|
#line 31 "parser.ypp"
|
2022-02-18 13:07:37 -05:00
|
|
|
|
2022-04-12 13:13:10 -04:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
#pragma warning(disable:4065)
|
|
|
|
#pragma warning(disable:4127)
|
|
|
|
#endif
|
2023-05-13 13:24:57 -04:00
|
|
|
#include "context.hpp"
|
|
|
|
namespace xsk::arc { class preprocessor; }
|
2022-02-18 13:07:37 -05:00
|
|
|
|
2022-04-12 13:13:10 -04:00
|
|
|
#line 58 "parser.hpp"
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
# include <cassert>
|
|
|
|
# include <cstdlib> // std::abort
|
|
|
|
# include <iostream>
|
|
|
|
# include <stdexcept>
|
|
|
|
# include <string>
|
|
|
|
# include <vector>
|
|
|
|
|
|
|
|
#if defined __cplusplus
|
|
|
|
# define YY_CPLUSPLUS __cplusplus
|
|
|
|
#else
|
|
|
|
# define YY_CPLUSPLUS 199711L
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Support move semantics when possible.
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
# define YY_MOVE std::move
|
|
|
|
# define YY_MOVE_OR_COPY move
|
|
|
|
# define YY_MOVE_REF(Type) Type&&
|
|
|
|
# define YY_RVREF(Type) Type&&
|
|
|
|
# define YY_COPY(Type) Type
|
|
|
|
#else
|
|
|
|
# define YY_MOVE
|
|
|
|
# define YY_MOVE_OR_COPY copy
|
|
|
|
# define YY_MOVE_REF(Type) Type&
|
|
|
|
# define YY_RVREF(Type) const Type&
|
|
|
|
# define YY_COPY(Type) const Type&
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Support noexcept when possible.
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
# define YY_NOEXCEPT noexcept
|
|
|
|
# define YY_NOTHROW
|
|
|
|
#else
|
|
|
|
# define YY_NOEXCEPT
|
|
|
|
# define YY_NOTHROW throw ()
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Support constexpr when possible.
|
|
|
|
#if 201703 <= YY_CPLUSPLUS
|
|
|
|
# define YY_CONSTEXPR constexpr
|
|
|
|
#else
|
|
|
|
# define YY_CONSTEXPR
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <typeinfo>
|
2023-05-13 13:24:57 -04:00
|
|
|
#ifndef ARC_ASSERT
|
2022-02-18 13:07:37 -05:00
|
|
|
# include <cassert>
|
2023-05-13 13:24:57 -04:00
|
|
|
# define ARC_ASSERT assert
|
2022-02-18 13:07:37 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef YY_ATTRIBUTE_PURE
|
|
|
|
# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
|
|
|
|
# define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
|
|
|
|
# else
|
|
|
|
# define YY_ATTRIBUTE_PURE
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef YY_ATTRIBUTE_UNUSED
|
|
|
|
# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
|
|
|
|
# define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
|
|
|
|
# else
|
|
|
|
# define YY_ATTRIBUTE_UNUSED
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Suppress unused-variable warnings by "using" E. */
|
|
|
|
#if ! defined lint || defined __GNUC__
|
|
|
|
# define YY_USE(E) ((void) (E))
|
|
|
|
#else
|
|
|
|
# define YY_USE(E) /* empty */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Suppress an incorrect diagnostic about yylval being uninitialized. */
|
2022-04-12 13:13:10 -04:00
|
|
|
#if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__
|
|
|
|
# if __GNUC__ * 100 + __GNUC_MINOR__ < 407
|
|
|
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
|
|
|
|
_Pragma ("GCC diagnostic push") \
|
|
|
|
_Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")
|
|
|
|
# else
|
|
|
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
|
2022-02-18 13:07:37 -05:00
|
|
|
_Pragma ("GCC diagnostic push") \
|
|
|
|
_Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \
|
|
|
|
_Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
|
2022-04-12 13:13:10 -04:00
|
|
|
# endif
|
2022-02-18 13:07:37 -05:00
|
|
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_END \
|
|
|
|
_Pragma ("GCC diagnostic pop")
|
|
|
|
#else
|
|
|
|
# define YY_INITIAL_VALUE(Value) Value
|
|
|
|
#endif
|
|
|
|
#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
|
|
|
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
|
|
|
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_END
|
|
|
|
#endif
|
|
|
|
#ifndef YY_INITIAL_VALUE
|
|
|
|
# define YY_INITIAL_VALUE(Value) /* Nothing. */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
|
|
|
|
# define YY_IGNORE_USELESS_CAST_BEGIN \
|
|
|
|
_Pragma ("GCC diagnostic push") \
|
|
|
|
_Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
|
|
|
|
# define YY_IGNORE_USELESS_CAST_END \
|
|
|
|
_Pragma ("GCC diagnostic pop")
|
|
|
|
#endif
|
|
|
|
#ifndef YY_IGNORE_USELESS_CAST_BEGIN
|
|
|
|
# define YY_IGNORE_USELESS_CAST_BEGIN
|
|
|
|
# define YY_IGNORE_USELESS_CAST_END
|
|
|
|
#endif
|
|
|
|
|
|
|
|
# ifndef YY_CAST
|
|
|
|
# ifdef __cplusplus
|
|
|
|
# define YY_CAST(Type, Val) static_cast<Type> (Val)
|
|
|
|
# define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val)
|
|
|
|
# else
|
|
|
|
# define YY_CAST(Type, Val) ((Type) (Val))
|
|
|
|
# define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))
|
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
# ifndef YY_NULLPTR
|
|
|
|
# if defined __cplusplus
|
|
|
|
# if 201103L <= __cplusplus
|
|
|
|
# define YY_NULLPTR nullptr
|
|
|
|
# else
|
|
|
|
# define YY_NULLPTR 0
|
|
|
|
# endif
|
|
|
|
# else
|
|
|
|
# define YY_NULLPTR ((void*)0)
|
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
|
|
|
|
/* Debug traces. */
|
2023-05-13 13:24:57 -04:00
|
|
|
#ifndef ARCDEBUG
|
2022-02-18 13:07:37 -05:00
|
|
|
# if defined YYDEBUG
|
|
|
|
#if YYDEBUG
|
2023-05-13 13:24:57 -04:00
|
|
|
# define ARCDEBUG 1
|
2022-02-18 13:07:37 -05:00
|
|
|
# else
|
2023-05-13 13:24:57 -04:00
|
|
|
# define ARCDEBUG 0
|
2022-02-18 13:07:37 -05:00
|
|
|
# endif
|
|
|
|
# else /* ! defined YYDEBUG */
|
2023-05-13 13:24:57 -04:00
|
|
|
# define ARCDEBUG 1
|
2022-02-18 13:07:37 -05:00
|
|
|
# endif /* ! defined YYDEBUG */
|
2023-05-13 13:24:57 -04:00
|
|
|
#endif /* ! defined ARCDEBUG */
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
#line 13 "parser.ypp"
|
2023-05-13 13:24:57 -04:00
|
|
|
namespace xsk { namespace arc {
|
2022-04-12 13:13:10 -04:00
|
|
|
#line 207 "parser.hpp"
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// A Bison parser.
|
|
|
|
class parser
|
|
|
|
{
|
|
|
|
public:
|
2023-05-13 13:24:57 -04:00
|
|
|
#ifdef ARCSTYPE
|
2022-04-12 13:13:10 -04:00
|
|
|
# ifdef __GNUC__
|
2023-05-13 13:24:57 -04:00
|
|
|
# pragma GCC message "bison: do not #define ARCSTYPE in C++, use %define api.value.type"
|
2022-04-12 13:13:10 -04:00
|
|
|
# endif
|
2023-05-13 13:24:57 -04:00
|
|
|
typedef ARCSTYPE value_type;
|
2022-04-12 13:13:10 -04:00
|
|
|
#else
|
2022-02-18 13:07:37 -05:00
|
|
|
/// A buffer to store and retrieve objects.
|
|
|
|
///
|
|
|
|
/// Sort of a variant, but does not keep track of the nature
|
|
|
|
/// of the stored data, since that knowledge is available
|
|
|
|
/// via the current parser state.
|
2022-04-12 13:13:10 -04:00
|
|
|
class value_type
|
2022-02-18 13:07:37 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
/// Type of *this.
|
2022-04-12 13:13:10 -04:00
|
|
|
typedef value_type self_type;
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
/// Empty construction.
|
2022-04-12 13:13:10 -04:00
|
|
|
value_type () YY_NOEXCEPT
|
|
|
|
: yyraw_ ()
|
2022-02-18 13:07:37 -05:00
|
|
|
, yytypeid_ (YY_NULLPTR)
|
|
|
|
{}
|
|
|
|
|
|
|
|
/// Construct and fill.
|
|
|
|
template <typename T>
|
2022-04-12 13:13:10 -04:00
|
|
|
value_type (YY_RVREF (T) t)
|
2022-02-18 13:07:37 -05:00
|
|
|
: yytypeid_ (&typeid (T))
|
|
|
|
{
|
2023-05-13 13:24:57 -04:00
|
|
|
ARC_ASSERT (sizeof (T) <= size);
|
2022-02-18 13:07:37 -05:00
|
|
|
new (yyas_<T> ()) T (YY_MOVE (t));
|
|
|
|
}
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
/// Non copyable.
|
2022-04-12 13:13:10 -04:00
|
|
|
value_type (const self_type&) = delete;
|
2022-02-18 13:07:37 -05:00
|
|
|
/// Non copyable.
|
|
|
|
self_type& operator= (const self_type&) = delete;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/// Destruction, allowed only if empty.
|
2022-04-12 13:13:10 -04:00
|
|
|
~value_type () YY_NOEXCEPT
|
2022-02-18 13:07:37 -05:00
|
|
|
{
|
2023-05-13 13:24:57 -04:00
|
|
|
ARC_ASSERT (!yytypeid_);
|
2022-02-18 13:07:37 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
# if 201103L <= YY_CPLUSPLUS
|
|
|
|
/// Instantiate a \a T in here from \a t.
|
|
|
|
template <typename T, typename... U>
|
|
|
|
T&
|
|
|
|
emplace (U&&... u)
|
|
|
|
{
|
2023-05-13 13:24:57 -04:00
|
|
|
ARC_ASSERT (!yytypeid_);
|
|
|
|
ARC_ASSERT (sizeof (T) <= size);
|
2022-02-18 13:07:37 -05:00
|
|
|
yytypeid_ = & typeid (T);
|
|
|
|
return *new (yyas_<T> ()) T (std::forward <U>(u)...);
|
|
|
|
}
|
|
|
|
# else
|
|
|
|
/// Instantiate an empty \a T in here.
|
|
|
|
template <typename T>
|
|
|
|
T&
|
|
|
|
emplace ()
|
|
|
|
{
|
2023-05-13 13:24:57 -04:00
|
|
|
ARC_ASSERT (!yytypeid_);
|
|
|
|
ARC_ASSERT (sizeof (T) <= size);
|
2022-02-18 13:07:37 -05:00
|
|
|
yytypeid_ = & typeid (T);
|
|
|
|
return *new (yyas_<T> ()) T ();
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Instantiate a \a T in here from \a t.
|
|
|
|
template <typename T>
|
|
|
|
T&
|
|
|
|
emplace (const T& t)
|
|
|
|
{
|
2023-05-13 13:24:57 -04:00
|
|
|
ARC_ASSERT (!yytypeid_);
|
|
|
|
ARC_ASSERT (sizeof (T) <= size);
|
2022-02-18 13:07:37 -05:00
|
|
|
yytypeid_ = & typeid (T);
|
|
|
|
return *new (yyas_<T> ()) T (t);
|
|
|
|
}
|
|
|
|
# endif
|
|
|
|
|
|
|
|
/// Instantiate an empty \a T in here.
|
|
|
|
/// Obsolete, use emplace.
|
|
|
|
template <typename T>
|
|
|
|
T&
|
|
|
|
build ()
|
|
|
|
{
|
|
|
|
return emplace<T> ();
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Instantiate a \a T in here from \a t.
|
|
|
|
/// Obsolete, use emplace.
|
|
|
|
template <typename T>
|
|
|
|
T&
|
|
|
|
build (const T& t)
|
|
|
|
{
|
|
|
|
return emplace<T> (t);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Accessor to a built \a T.
|
|
|
|
template <typename T>
|
|
|
|
T&
|
|
|
|
as () YY_NOEXCEPT
|
|
|
|
{
|
2023-05-13 13:24:57 -04:00
|
|
|
ARC_ASSERT (yytypeid_);
|
|
|
|
ARC_ASSERT (*yytypeid_ == typeid (T));
|
|
|
|
ARC_ASSERT (sizeof (T) <= size);
|
2022-02-18 13:07:37 -05:00
|
|
|
return *yyas_<T> ();
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Const accessor to a built \a T (for %printer).
|
|
|
|
template <typename T>
|
|
|
|
const T&
|
|
|
|
as () const YY_NOEXCEPT
|
|
|
|
{
|
2023-05-13 13:24:57 -04:00
|
|
|
ARC_ASSERT (yytypeid_);
|
|
|
|
ARC_ASSERT (*yytypeid_ == typeid (T));
|
|
|
|
ARC_ASSERT (sizeof (T) <= size);
|
2022-02-18 13:07:37 -05:00
|
|
|
return *yyas_<T> ();
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Swap the content with \a that, of same type.
|
|
|
|
///
|
|
|
|
/// Both variants must be built beforehand, because swapping the actual
|
|
|
|
/// data requires reading it (with as()), and this is not possible on
|
|
|
|
/// unconstructed variants: it would require some dynamic testing, which
|
|
|
|
/// should not be the variant's responsibility.
|
|
|
|
/// Swapping between built and (possibly) non-built is done with
|
|
|
|
/// self_type::move ().
|
|
|
|
template <typename T>
|
|
|
|
void
|
|
|
|
swap (self_type& that) YY_NOEXCEPT
|
|
|
|
{
|
2023-05-13 13:24:57 -04:00
|
|
|
ARC_ASSERT (yytypeid_);
|
|
|
|
ARC_ASSERT (*yytypeid_ == *that.yytypeid_);
|
2022-02-18 13:07:37 -05:00
|
|
|
std::swap (as<T> (), that.as<T> ());
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Move the content of \a that to this.
|
|
|
|
///
|
|
|
|
/// Destroys \a that.
|
|
|
|
template <typename T>
|
|
|
|
void
|
|
|
|
move (self_type& that)
|
|
|
|
{
|
|
|
|
# if 201103L <= YY_CPLUSPLUS
|
|
|
|
emplace<T> (std::move (that.as<T> ()));
|
|
|
|
# else
|
|
|
|
emplace<T> ();
|
|
|
|
swap<T> (that);
|
|
|
|
# endif
|
|
|
|
that.destroy<T> ();
|
|
|
|
}
|
|
|
|
|
|
|
|
# if 201103L <= YY_CPLUSPLUS
|
|
|
|
/// Move the content of \a that to this.
|
|
|
|
template <typename T>
|
|
|
|
void
|
|
|
|
move (self_type&& that)
|
|
|
|
{
|
|
|
|
emplace<T> (std::move (that.as<T> ()));
|
|
|
|
that.destroy<T> ();
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/// Copy the content of \a that to this.
|
|
|
|
template <typename T>
|
|
|
|
void
|
|
|
|
copy (const self_type& that)
|
|
|
|
{
|
|
|
|
emplace<T> (that.as<T> ());
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Destroy the stored \a T.
|
|
|
|
template <typename T>
|
|
|
|
void
|
|
|
|
destroy ()
|
|
|
|
{
|
|
|
|
as<T> ().~T ();
|
|
|
|
yytypeid_ = YY_NULLPTR;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
#if YY_CPLUSPLUS < 201103L
|
|
|
|
/// Non copyable.
|
2022-04-12 13:13:10 -04:00
|
|
|
value_type (const self_type&);
|
2022-02-18 13:07:37 -05:00
|
|
|
/// Non copyable.
|
|
|
|
self_type& operator= (const self_type&);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/// Accessor to raw memory as \a T.
|
|
|
|
template <typename T>
|
|
|
|
T*
|
|
|
|
yyas_ () YY_NOEXCEPT
|
|
|
|
{
|
2022-04-12 13:13:10 -04:00
|
|
|
void *yyp = yyraw_;
|
2022-02-18 13:07:37 -05:00
|
|
|
return static_cast<T*> (yyp);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Const accessor to raw memory as \a T.
|
|
|
|
template <typename T>
|
|
|
|
const T*
|
|
|
|
yyas_ () const YY_NOEXCEPT
|
|
|
|
{
|
2022-04-12 13:13:10 -04:00
|
|
|
const void *yyp = yyraw_;
|
2022-02-18 13:07:37 -05:00
|
|
|
return static_cast<const T*> (yyp);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// An auxiliary type to compute the largest semantic type.
|
|
|
|
union union_type
|
|
|
|
{
|
|
|
|
// expr_function
|
|
|
|
// expr_pointer
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy1[sizeof (call::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// declaration
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy2[sizeof (decl::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
2023-05-13 13:24:57 -04:00
|
|
|
// decl_function
|
|
|
|
char dummy3[sizeof (decl_function::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// decl_usingtree
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy4[sizeof (decl_usingtree::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr
|
|
|
|
// expr_or_empty
|
|
|
|
// expr_increment
|
|
|
|
// expr_decrement
|
2023-05-13 13:24:57 -04:00
|
|
|
// expr_assign
|
2022-02-18 13:07:37 -05:00
|
|
|
// expr_ternary
|
|
|
|
// expr_binary
|
|
|
|
// expr_primitive
|
2022-10-15 08:49:29 -04:00
|
|
|
// expr_parameters_default
|
2022-02-18 13:07:37 -05:00
|
|
|
// expr_object
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy5[sizeof (expr::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_abs
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy6[sizeof (expr_abs::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_angleclamp180
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy7[sizeof (expr_angleclamp180::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_anglestoforward
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy8[sizeof (expr_anglestoforward::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_anglestoright
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy9[sizeof (expr_anglestoright::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_anglestoup
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy10[sizeof (expr_anglestoup::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_anim
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy11[sizeof (expr_anim::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_animation
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy12[sizeof (expr_animation::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
2022-10-14 12:47:38 -04:00
|
|
|
// expr_animtree
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy13[sizeof (expr_animtree::ptr)];
|
2022-10-14 12:47:38 -04:00
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
// expr_arguments
|
|
|
|
// expr_arguments_no_empty
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy14[sizeof (expr_arguments::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_array
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy15[sizeof (expr_array::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_call
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy16[sizeof (expr_call::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_complement
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy17[sizeof (expr_complement::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_empty_array
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy18[sizeof (expr_empty_array::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_false
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy19[sizeof (expr_false::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_field
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy20[sizeof (expr_field::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_float
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy21[sizeof (expr_float::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_game
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy22[sizeof (expr_game::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_getdvar
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy23[sizeof (expr_getdvar::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_getdvarcoloralpha
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy24[sizeof (expr_getdvarcoloralpha::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_getdvarcolorblue
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy25[sizeof (expr_getdvarcolorblue::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_getdvarcolorgreen
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy26[sizeof (expr_getdvarcolorgreen::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_getdvarcolorred
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy27[sizeof (expr_getdvarcolorred::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_getdvarfloat
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy28[sizeof (expr_getdvarfloat::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_getdvarint
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy29[sizeof (expr_getdvarint::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_getdvarvector
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy30[sizeof (expr_getdvarvector::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_getfirstarraykey
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy31[sizeof (expr_getfirstarraykey::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_getnextarraykey
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy32[sizeof (expr_getnextarraykey::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_gettime
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy33[sizeof (expr_gettime::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_hash
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy34[sizeof (expr_hash::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
2022-02-20 06:10:21 -05:00
|
|
|
// expr_identifier_nosize
|
2022-02-18 13:07:37 -05:00
|
|
|
// expr_identifier
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy35[sizeof (expr_identifier::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_integer
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy36[sizeof (expr_integer::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_isdefined
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy37[sizeof (expr_isdefined::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_istring
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy38[sizeof (expr_istring::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_level
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy39[sizeof (expr_level::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_method
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy40[sizeof (expr_method::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
2022-06-15 11:06:58 -04:00
|
|
|
// expr_negate
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy41[sizeof (expr_negate::ptr)];
|
2022-06-15 11:06:58 -04:00
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
// expr_not
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy42[sizeof (expr_not::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_parameters
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy43[sizeof (expr_parameters::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_paren
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy44[sizeof (expr_paren::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_path
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy45[sizeof (expr_path::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_reference
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy46[sizeof (expr_reference::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_self
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy47[sizeof (expr_self::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_size
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy48[sizeof (expr_size::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_string
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy49[sizeof (expr_string::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_true
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy50[sizeof (expr_true::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_undefined
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy51[sizeof (expr_undefined::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_vector
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy52[sizeof (expr_vector::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_vectorscale
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy53[sizeof (expr_vectorscale::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// expr_vectortoangles
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy54[sizeof (expr_vectortoangles::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// include
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy55[sizeof (include::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// program
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy56[sizeof (program::ptr)];
|
|
|
|
|
|
|
|
// "path"
|
|
|
|
// "identifier"
|
|
|
|
// "string literal"
|
|
|
|
// "localized string"
|
|
|
|
// "hash string"
|
|
|
|
// "float"
|
|
|
|
// "integer"
|
|
|
|
char dummy57[sizeof (std::string)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// stmt
|
|
|
|
// stmt_or_dev
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy58[sizeof (stmt::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// stmt_break
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy59[sizeof (stmt_break::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// stmt_case
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy60[sizeof (stmt_case::ptr)];
|
2022-10-20 11:19:34 -04:00
|
|
|
|
2023-05-13 13:24:57 -04:00
|
|
|
// stmt_comp
|
|
|
|
char dummy61[sizeof (stmt_comp::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// stmt_continue
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy62[sizeof (stmt_continue::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// stmt_default
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy63[sizeof (stmt_default::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// stmt_dev
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy64[sizeof (stmt_dev::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// stmt_dowhile
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy65[sizeof (stmt_dowhile::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// stmt_endon
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy66[sizeof (stmt_endon::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// stmt_expr
|
2023-05-13 13:24:57 -04:00
|
|
|
// stmt_call
|
|
|
|
// stmt_const
|
|
|
|
// stmt_assign
|
|
|
|
char dummy67[sizeof (stmt_expr::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// stmt_for
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy68[sizeof (stmt_for::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// stmt_foreach
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy69[sizeof (stmt_foreach::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// stmt_if
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy70[sizeof (stmt_if::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// stmt_ifelse
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy71[sizeof (stmt_ifelse::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// stmt_list
|
|
|
|
// stmt_or_dev_list
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy72[sizeof (stmt_list::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// stmt_notify
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy73[sizeof (stmt_notify::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// stmt_prof_begin
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy74[sizeof (stmt_prof_begin::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// stmt_prof_end
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy75[sizeof (stmt_prof_end::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// stmt_return
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy76[sizeof (stmt_return::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// stmt_switch
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy77[sizeof (stmt_switch::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// stmt_wait
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy78[sizeof (stmt_wait::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// stmt_waittill
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy79[sizeof (stmt_waittill::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// stmt_waittillframeend
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy80[sizeof (stmt_waittillframeend::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// stmt_waittillmatch
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy81[sizeof (stmt_waittillmatch::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// stmt_while
|
2023-05-13 13:24:57 -04:00
|
|
|
char dummy82[sizeof (stmt_while::ptr)];
|
2022-02-18 13:07:37 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
/// The size of the largest semantic type.
|
|
|
|
enum { size = sizeof (union_type) };
|
|
|
|
|
|
|
|
/// A buffer to store semantic values.
|
|
|
|
union
|
|
|
|
{
|
|
|
|
/// Strongest alignment constraints.
|
2022-04-12 13:13:10 -04:00
|
|
|
long double yyalign_me_;
|
2022-02-18 13:07:37 -05:00
|
|
|
/// A buffer large enough to store any of the semantic values.
|
2022-04-12 13:13:10 -04:00
|
|
|
char yyraw_[size];
|
|
|
|
};
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
/// Whether the content is built: if defined, the name of the stored type.
|
|
|
|
const std::type_info *yytypeid_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2022-04-12 13:13:10 -04:00
|
|
|
/// Backward compatibility (Bison 3.8).
|
|
|
|
typedef value_type semantic_type;
|
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
/// Symbol locations.
|
|
|
|
typedef xsk::arc::location location_type;
|
|
|
|
|
|
|
|
/// Syntax errors thrown from user actions.
|
|
|
|
struct syntax_error : std::runtime_error
|
|
|
|
{
|
|
|
|
syntax_error (const location_type& l, const std::string& m)
|
|
|
|
: std::runtime_error (m)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
|
|
|
|
syntax_error (const syntax_error& s)
|
|
|
|
: std::runtime_error (s.what ())
|
|
|
|
, location (s.location)
|
|
|
|
{}
|
|
|
|
|
|
|
|
~syntax_error () YY_NOEXCEPT YY_NOTHROW;
|
|
|
|
|
|
|
|
location_type location;
|
|
|
|
};
|
|
|
|
|
|
|
|
/// Token kinds.
|
|
|
|
struct token
|
|
|
|
{
|
|
|
|
enum token_kind_type
|
|
|
|
{
|
2023-05-13 13:24:57 -04:00
|
|
|
ARCEMPTY = -2,
|
|
|
|
ARCEOF = 0, // "end of file"
|
|
|
|
ARCerror = 1, // error
|
|
|
|
ARCUNDEF = 2, // "invalid token"
|
|
|
|
HASH = 3, // "#"
|
|
|
|
DEVBEGIN = 4, // "/#"
|
|
|
|
DEVEND = 5, // "#/"
|
|
|
|
INLINE = 6, // "#inline"
|
|
|
|
INCLUDE = 7, // "#include"
|
|
|
|
USINGTREE = 8, // "#using_animtree"
|
|
|
|
ANIMTREE = 9, // "#animtree"
|
|
|
|
AUTOEXEC = 10, // "autoexec"
|
|
|
|
CODECALL = 11, // "codecall"
|
|
|
|
PRIVATE = 12, // "private"
|
|
|
|
ENDON = 13, // "endon"
|
|
|
|
NOTIFY = 14, // "notify"
|
|
|
|
WAIT = 15, // "wait"
|
|
|
|
WAITTILL = 16, // "waittill"
|
|
|
|
WAITTILLMATCH = 17, // "waittillmatch"
|
|
|
|
WAITTILLFRAMEEND = 18, // "waittillframeend"
|
|
|
|
IF = 19, // "if"
|
|
|
|
ELSE = 20, // "else"
|
|
|
|
DO = 21, // "do"
|
|
|
|
WHILE = 22, // "while"
|
|
|
|
FOR = 23, // "for"
|
|
|
|
FOREACH = 24, // "foreach"
|
|
|
|
IN = 25, // "in"
|
|
|
|
SWITCH = 26, // "switch"
|
|
|
|
CASE = 27, // "case"
|
|
|
|
DEFAULT = 28, // "default"
|
|
|
|
BREAK = 29, // "break"
|
|
|
|
CONTINUE = 30, // "continue"
|
|
|
|
RETURN = 31, // "return"
|
|
|
|
PROFBEGIN = 32, // "prof_begin"
|
|
|
|
PROFEND = 33, // "prof_end"
|
|
|
|
THREAD = 34, // "thread"
|
|
|
|
TRUE = 35, // "true"
|
|
|
|
FALSE = 36, // "false"
|
|
|
|
UNDEFINED = 37, // "undefined"
|
|
|
|
SIZE = 38, // "size"
|
|
|
|
GAME = 39, // "game"
|
|
|
|
SELF = 40, // "self"
|
|
|
|
ANIM = 41, // "anim"
|
|
|
|
LEVEL = 42, // "level"
|
|
|
|
CONST = 43, // "const"
|
|
|
|
GETNEXTARRAYKEY = 44, // "getnextarraykey"
|
|
|
|
GETFIRSTARRAYKEY = 45, // "getfirstarraykey"
|
|
|
|
GETDVARCOLORALPHA = 46, // "getdvarcoloralpha"
|
|
|
|
GETDVARCOLORBLUE = 47, // "getdvarcolorblue"
|
|
|
|
GETDVARCOLORGREEN = 48, // "getdvarcolorgreen"
|
|
|
|
GETDVARCOLORRED = 49, // "getdvarcolorred"
|
|
|
|
GETDVARVECTOR = 50, // "getdvarvector"
|
|
|
|
GETDVARFLOAT = 51, // "getdvarfloat"
|
|
|
|
GETDVARINT = 52, // "getdvarint"
|
|
|
|
GETDVAR = 53, // "getdvar"
|
|
|
|
GETTIME = 54, // "gettime"
|
|
|
|
ABS = 55, // "abs"
|
|
|
|
VECTORTOANGLES = 56, // "vectortoangles"
|
|
|
|
ANGLECLAMP180 = 57, // "angleclamp180"
|
|
|
|
ANGLESTOFORWARD = 58, // "anglestoforward"
|
|
|
|
ANGLESTORIGHT = 59, // "anglestoright"
|
|
|
|
ANGLESTOUP = 60, // "anglestoup"
|
|
|
|
VECTORSCALE = 61, // "vectorscale"
|
|
|
|
ISDEFINED = 62, // "isdefined"
|
|
|
|
LPAREN = 63, // "("
|
|
|
|
RPAREN = 64, // ")"
|
|
|
|
LBRACE = 65, // "{"
|
|
|
|
RBRACE = 66, // "}"
|
|
|
|
LBRACKET = 67, // "["
|
|
|
|
RBRACKET = 68, // "]"
|
|
|
|
COMMA = 69, // ","
|
|
|
|
DOT = 70, // "."
|
|
|
|
DOUBLEDOT = 71, // ".."
|
|
|
|
ELLIPSIS = 72, // "..."
|
|
|
|
DOUBLECOLON = 73, // "::"
|
|
|
|
COLON = 74, // ":"
|
|
|
|
SEMICOLON = 75, // ";"
|
|
|
|
QMARK = 76, // "?"
|
|
|
|
INCREMENT = 77, // "++"
|
|
|
|
DECREMENT = 78, // "--"
|
|
|
|
LSHIFT = 79, // "<<"
|
|
|
|
RSHIFT = 80, // ">>"
|
|
|
|
OR = 81, // "||"
|
|
|
|
AND = 82, // "&&"
|
|
|
|
EQUALITY = 83, // "=="
|
|
|
|
INEQUALITY = 84, // "!="
|
|
|
|
LESS_EQUAL = 85, // "<="
|
|
|
|
GREATER_EQUAL = 86, // ">="
|
|
|
|
LESS = 87, // "<"
|
|
|
|
GREATER = 88, // ">"
|
|
|
|
NOT = 89, // "!"
|
|
|
|
COMPLEMENT = 90, // "~"
|
|
|
|
ASSIGN = 91, // "="
|
|
|
|
ASSIGN_ADD = 92, // "+="
|
|
|
|
ASSIGN_SUB = 93, // "-="
|
|
|
|
ASSIGN_MUL = 94, // "*="
|
|
|
|
ASSIGN_DIV = 95, // "/="
|
|
|
|
ASSIGN_MOD = 96, // "%="
|
|
|
|
ASSIGN_BW_OR = 97, // "|="
|
|
|
|
ASSIGN_BW_AND = 98, // "&="
|
|
|
|
ASSIGN_BW_EXOR = 99, // "^="
|
|
|
|
ASSIGN_RSHIFT = 100, // ">>="
|
|
|
|
ASSIGN_LSHIFT = 101, // "<<="
|
|
|
|
BITWISE_OR = 102, // "|"
|
|
|
|
BITWISE_AND = 103, // "&"
|
|
|
|
BITWISE_EXOR = 104, // "^"
|
|
|
|
ADD = 105, // "+"
|
|
|
|
SUB = 106, // "-"
|
|
|
|
MUL = 107, // "*"
|
|
|
|
DIV = 108, // "/"
|
|
|
|
MOD = 109, // "%"
|
|
|
|
PATH = 110, // "path"
|
|
|
|
IDENTIFIER = 111, // "identifier"
|
|
|
|
STRING = 112, // "string literal"
|
|
|
|
ISTRING = 113, // "localized string"
|
|
|
|
HASHSTR = 114, // "hash string"
|
|
|
|
FLOAT = 115, // "float"
|
|
|
|
INTEGER = 116, // "integer"
|
|
|
|
SIZEOF = 117, // SIZEOF
|
|
|
|
THEN = 118, // THEN
|
|
|
|
TERN = 119, // TERN
|
|
|
|
NEG = 120, // NEG
|
|
|
|
ANIMREF = 121, // ANIMREF
|
|
|
|
PREINC = 122, // PREINC
|
|
|
|
PREDEC = 123, // PREDEC
|
|
|
|
POSTINC = 124, // POSTINC
|
|
|
|
POSTDEC = 125 // POSTDEC
|
2022-02-18 13:07:37 -05:00
|
|
|
};
|
|
|
|
/// Backward compatibility alias (Bison 3.6).
|
|
|
|
typedef token_kind_type yytokentype;
|
|
|
|
};
|
|
|
|
|
|
|
|
/// Token kind, as returned by yylex.
|
2022-04-12 13:13:10 -04:00
|
|
|
typedef token::token_kind_type token_kind_type;
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
/// Backward compatibility alias (Bison 3.6).
|
|
|
|
typedef token_kind_type token_type;
|
|
|
|
|
|
|
|
/// Symbol kinds.
|
|
|
|
struct symbol_kind
|
|
|
|
{
|
|
|
|
enum symbol_kind_type
|
|
|
|
{
|
2023-05-13 13:24:57 -04:00
|
|
|
YYNTOKENS = 126, ///< Number of tokens.
|
2022-02-18 13:07:37 -05:00
|
|
|
S_YYEMPTY = -2,
|
|
|
|
S_YYEOF = 0, // "end of file"
|
|
|
|
S_YYerror = 1, // error
|
|
|
|
S_YYUNDEF = 2, // "invalid token"
|
2023-05-13 13:24:57 -04:00
|
|
|
S_HASH = 3, // "#"
|
|
|
|
S_DEVBEGIN = 4, // "/#"
|
|
|
|
S_DEVEND = 5, // "#/"
|
|
|
|
S_INLINE = 6, // "#inline"
|
|
|
|
S_INCLUDE = 7, // "#include"
|
|
|
|
S_USINGTREE = 8, // "#using_animtree"
|
|
|
|
S_ANIMTREE = 9, // "#animtree"
|
|
|
|
S_AUTOEXEC = 10, // "autoexec"
|
|
|
|
S_CODECALL = 11, // "codecall"
|
|
|
|
S_PRIVATE = 12, // "private"
|
|
|
|
S_ENDON = 13, // "endon"
|
|
|
|
S_NOTIFY = 14, // "notify"
|
|
|
|
S_WAIT = 15, // "wait"
|
|
|
|
S_WAITTILL = 16, // "waittill"
|
|
|
|
S_WAITTILLMATCH = 17, // "waittillmatch"
|
|
|
|
S_WAITTILLFRAMEEND = 18, // "waittillframeend"
|
|
|
|
S_IF = 19, // "if"
|
|
|
|
S_ELSE = 20, // "else"
|
|
|
|
S_DO = 21, // "do"
|
|
|
|
S_WHILE = 22, // "while"
|
|
|
|
S_FOR = 23, // "for"
|
|
|
|
S_FOREACH = 24, // "foreach"
|
|
|
|
S_IN = 25, // "in"
|
|
|
|
S_SWITCH = 26, // "switch"
|
|
|
|
S_CASE = 27, // "case"
|
|
|
|
S_DEFAULT = 28, // "default"
|
|
|
|
S_BREAK = 29, // "break"
|
|
|
|
S_CONTINUE = 30, // "continue"
|
|
|
|
S_RETURN = 31, // "return"
|
|
|
|
S_PROFBEGIN = 32, // "prof_begin"
|
|
|
|
S_PROFEND = 33, // "prof_end"
|
|
|
|
S_THREAD = 34, // "thread"
|
|
|
|
S_TRUE = 35, // "true"
|
|
|
|
S_FALSE = 36, // "false"
|
|
|
|
S_UNDEFINED = 37, // "undefined"
|
|
|
|
S_SIZE = 38, // "size"
|
|
|
|
S_GAME = 39, // "game"
|
|
|
|
S_SELF = 40, // "self"
|
|
|
|
S_ANIM = 41, // "anim"
|
|
|
|
S_LEVEL = 42, // "level"
|
|
|
|
S_CONST = 43, // "const"
|
|
|
|
S_GETNEXTARRAYKEY = 44, // "getnextarraykey"
|
|
|
|
S_GETFIRSTARRAYKEY = 45, // "getfirstarraykey"
|
|
|
|
S_GETDVARCOLORALPHA = 46, // "getdvarcoloralpha"
|
|
|
|
S_GETDVARCOLORBLUE = 47, // "getdvarcolorblue"
|
|
|
|
S_GETDVARCOLORGREEN = 48, // "getdvarcolorgreen"
|
|
|
|
S_GETDVARCOLORRED = 49, // "getdvarcolorred"
|
|
|
|
S_GETDVARVECTOR = 50, // "getdvarvector"
|
|
|
|
S_GETDVARFLOAT = 51, // "getdvarfloat"
|
|
|
|
S_GETDVARINT = 52, // "getdvarint"
|
|
|
|
S_GETDVAR = 53, // "getdvar"
|
|
|
|
S_GETTIME = 54, // "gettime"
|
|
|
|
S_ABS = 55, // "abs"
|
|
|
|
S_VECTORTOANGLES = 56, // "vectortoangles"
|
|
|
|
S_ANGLECLAMP180 = 57, // "angleclamp180"
|
|
|
|
S_ANGLESTOFORWARD = 58, // "anglestoforward"
|
|
|
|
S_ANGLESTORIGHT = 59, // "anglestoright"
|
|
|
|
S_ANGLESTOUP = 60, // "anglestoup"
|
|
|
|
S_VECTORSCALE = 61, // "vectorscale"
|
|
|
|
S_ISDEFINED = 62, // "isdefined"
|
|
|
|
S_LPAREN = 63, // "("
|
|
|
|
S_RPAREN = 64, // ")"
|
|
|
|
S_LBRACE = 65, // "{"
|
|
|
|
S_RBRACE = 66, // "}"
|
|
|
|
S_LBRACKET = 67, // "["
|
|
|
|
S_RBRACKET = 68, // "]"
|
|
|
|
S_COMMA = 69, // ","
|
|
|
|
S_DOT = 70, // "."
|
|
|
|
S_DOUBLEDOT = 71, // ".."
|
|
|
|
S_ELLIPSIS = 72, // "..."
|
|
|
|
S_DOUBLECOLON = 73, // "::"
|
|
|
|
S_COLON = 74, // ":"
|
|
|
|
S_SEMICOLON = 75, // ";"
|
|
|
|
S_QMARK = 76, // "?"
|
|
|
|
S_INCREMENT = 77, // "++"
|
|
|
|
S_DECREMENT = 78, // "--"
|
|
|
|
S_LSHIFT = 79, // "<<"
|
|
|
|
S_RSHIFT = 80, // ">>"
|
|
|
|
S_OR = 81, // "||"
|
|
|
|
S_AND = 82, // "&&"
|
|
|
|
S_EQUALITY = 83, // "=="
|
|
|
|
S_INEQUALITY = 84, // "!="
|
|
|
|
S_LESS_EQUAL = 85, // "<="
|
|
|
|
S_GREATER_EQUAL = 86, // ">="
|
|
|
|
S_LESS = 87, // "<"
|
|
|
|
S_GREATER = 88, // ">"
|
|
|
|
S_NOT = 89, // "!"
|
|
|
|
S_COMPLEMENT = 90, // "~"
|
|
|
|
S_ASSIGN = 91, // "="
|
|
|
|
S_ASSIGN_ADD = 92, // "+="
|
|
|
|
S_ASSIGN_SUB = 93, // "-="
|
|
|
|
S_ASSIGN_MUL = 94, // "*="
|
|
|
|
S_ASSIGN_DIV = 95, // "/="
|
|
|
|
S_ASSIGN_MOD = 96, // "%="
|
|
|
|
S_ASSIGN_BW_OR = 97, // "|="
|
|
|
|
S_ASSIGN_BW_AND = 98, // "&="
|
|
|
|
S_ASSIGN_BW_EXOR = 99, // "^="
|
|
|
|
S_ASSIGN_RSHIFT = 100, // ">>="
|
|
|
|
S_ASSIGN_LSHIFT = 101, // "<<="
|
|
|
|
S_BITWISE_OR = 102, // "|"
|
|
|
|
S_BITWISE_AND = 103, // "&"
|
|
|
|
S_BITWISE_EXOR = 104, // "^"
|
|
|
|
S_ADD = 105, // "+"
|
|
|
|
S_SUB = 106, // "-"
|
|
|
|
S_MUL = 107, // "*"
|
|
|
|
S_DIV = 108, // "/"
|
|
|
|
S_MOD = 109, // "%"
|
|
|
|
S_PATH = 110, // "path"
|
|
|
|
S_IDENTIFIER = 111, // "identifier"
|
|
|
|
S_STRING = 112, // "string literal"
|
|
|
|
S_ISTRING = 113, // "localized string"
|
|
|
|
S_HASHSTR = 114, // "hash string"
|
|
|
|
S_FLOAT = 115, // "float"
|
|
|
|
S_INTEGER = 116, // "integer"
|
|
|
|
S_SIZEOF = 117, // SIZEOF
|
|
|
|
S_THEN = 118, // THEN
|
|
|
|
S_TERN = 119, // TERN
|
|
|
|
S_NEG = 120, // NEG
|
|
|
|
S_ANIMREF = 121, // ANIMREF
|
|
|
|
S_PREINC = 122, // PREINC
|
|
|
|
S_PREDEC = 123, // PREDEC
|
|
|
|
S_POSTINC = 124, // POSTINC
|
|
|
|
S_POSTDEC = 125, // POSTDEC
|
|
|
|
S_YYACCEPT = 126, // $accept
|
|
|
|
S_root = 127, // root
|
|
|
|
S_program = 128, // program
|
|
|
|
S_inline = 129, // inline
|
|
|
|
S_include = 130, // include
|
|
|
|
S_declaration = 131, // declaration
|
|
|
|
S_decl_usingtree = 132, // decl_usingtree
|
|
|
|
S_decl_function = 133, // decl_function
|
|
|
|
S_stmt = 134, // stmt
|
|
|
|
S_stmt_or_dev = 135, // stmt_or_dev
|
|
|
|
S_stmt_list = 136, // stmt_list
|
|
|
|
S_stmt_or_dev_list = 137, // stmt_or_dev_list
|
|
|
|
S_stmt_dev = 138, // stmt_dev
|
|
|
|
S_stmt_comp = 139, // stmt_comp
|
|
|
|
S_stmt_expr = 140, // stmt_expr
|
|
|
|
S_stmt_call = 141, // stmt_call
|
|
|
|
S_stmt_const = 142, // stmt_const
|
|
|
|
S_stmt_assign = 143, // stmt_assign
|
|
|
|
S_stmt_endon = 144, // stmt_endon
|
|
|
|
S_stmt_notify = 145, // stmt_notify
|
|
|
|
S_stmt_wait = 146, // stmt_wait
|
|
|
|
S_stmt_waittill = 147, // stmt_waittill
|
|
|
|
S_stmt_waittillmatch = 148, // stmt_waittillmatch
|
|
|
|
S_stmt_waittillframeend = 149, // stmt_waittillframeend
|
|
|
|
S_stmt_if = 150, // stmt_if
|
|
|
|
S_stmt_ifelse = 151, // stmt_ifelse
|
|
|
|
S_stmt_while = 152, // stmt_while
|
|
|
|
S_stmt_dowhile = 153, // stmt_dowhile
|
|
|
|
S_stmt_for = 154, // stmt_for
|
|
|
|
S_stmt_foreach = 155, // stmt_foreach
|
|
|
|
S_stmt_switch = 156, // stmt_switch
|
|
|
|
S_stmt_case = 157, // stmt_case
|
|
|
|
S_stmt_default = 158, // stmt_default
|
|
|
|
S_stmt_break = 159, // stmt_break
|
|
|
|
S_stmt_continue = 160, // stmt_continue
|
|
|
|
S_stmt_return = 161, // stmt_return
|
|
|
|
S_stmt_prof_begin = 162, // stmt_prof_begin
|
|
|
|
S_stmt_prof_end = 163, // stmt_prof_end
|
|
|
|
S_expr = 164, // expr
|
|
|
|
S_expr_or_empty = 165, // expr_or_empty
|
|
|
|
S_expr_increment = 166, // expr_increment
|
|
|
|
S_expr_decrement = 167, // expr_decrement
|
|
|
|
S_expr_assign = 168, // expr_assign
|
|
|
|
S_expr_ternary = 169, // expr_ternary
|
|
|
|
S_expr_binary = 170, // expr_binary
|
|
|
|
S_expr_primitive = 171, // expr_primitive
|
|
|
|
S_expr_complement = 172, // expr_complement
|
|
|
|
S_expr_negate = 173, // expr_negate
|
|
|
|
S_expr_not = 174, // expr_not
|
|
|
|
S_expr_call = 175, // expr_call
|
|
|
|
S_expr_method = 176, // expr_method
|
|
|
|
S_expr_function = 177, // expr_function
|
|
|
|
S_expr_pointer = 178, // expr_pointer
|
|
|
|
S_expr_parameters = 179, // expr_parameters
|
|
|
|
S_expr_parameters_default = 180, // expr_parameters_default
|
|
|
|
S_expr_arguments = 181, // expr_arguments
|
|
|
|
S_expr_arguments_no_empty = 182, // expr_arguments_no_empty
|
|
|
|
S_expr_getnextarraykey = 183, // expr_getnextarraykey
|
|
|
|
S_expr_getfirstarraykey = 184, // expr_getfirstarraykey
|
|
|
|
S_expr_getdvarcoloralpha = 185, // expr_getdvarcoloralpha
|
|
|
|
S_expr_getdvarcolorblue = 186, // expr_getdvarcolorblue
|
|
|
|
S_expr_getdvarcolorgreen = 187, // expr_getdvarcolorgreen
|
|
|
|
S_expr_getdvarcolorred = 188, // expr_getdvarcolorred
|
|
|
|
S_expr_getdvarvector = 189, // expr_getdvarvector
|
|
|
|
S_expr_getdvarfloat = 190, // expr_getdvarfloat
|
|
|
|
S_expr_getdvarint = 191, // expr_getdvarint
|
|
|
|
S_expr_getdvar = 192, // expr_getdvar
|
|
|
|
S_expr_gettime = 193, // expr_gettime
|
|
|
|
S_expr_abs = 194, // expr_abs
|
|
|
|
S_expr_vectortoangles = 195, // expr_vectortoangles
|
|
|
|
S_expr_angleclamp180 = 196, // expr_angleclamp180
|
|
|
|
S_expr_anglestoforward = 197, // expr_anglestoforward
|
|
|
|
S_expr_anglestoright = 198, // expr_anglestoright
|
|
|
|
S_expr_anglestoup = 199, // expr_anglestoup
|
|
|
|
S_expr_vectorscale = 200, // expr_vectorscale
|
|
|
|
S_expr_isdefined = 201, // expr_isdefined
|
|
|
|
S_expr_reference = 202, // expr_reference
|
|
|
|
S_expr_array = 203, // expr_array
|
|
|
|
S_expr_field = 204, // expr_field
|
|
|
|
S_expr_size = 205, // expr_size
|
|
|
|
S_expr_paren = 206, // expr_paren
|
|
|
|
S_expr_object = 207, // expr_object
|
|
|
|
S_expr_empty_array = 208, // expr_empty_array
|
|
|
|
S_expr_undefined = 209, // expr_undefined
|
|
|
|
S_expr_game = 210, // expr_game
|
|
|
|
S_expr_self = 211, // expr_self
|
|
|
|
S_expr_anim = 212, // expr_anim
|
|
|
|
S_expr_level = 213, // expr_level
|
|
|
|
S_expr_animation = 214, // expr_animation
|
|
|
|
S_expr_animtree = 215, // expr_animtree
|
|
|
|
S_expr_identifier_nosize = 216, // expr_identifier_nosize
|
|
|
|
S_expr_identifier = 217, // expr_identifier
|
|
|
|
S_expr_path = 218, // expr_path
|
|
|
|
S_expr_istring = 219, // expr_istring
|
|
|
|
S_expr_string = 220, // expr_string
|
|
|
|
S_expr_vector = 221, // expr_vector
|
|
|
|
S_expr_hash = 222, // expr_hash
|
|
|
|
S_expr_float = 223, // expr_float
|
|
|
|
S_expr_integer = 224, // expr_integer
|
|
|
|
S_expr_false = 225, // expr_false
|
|
|
|
S_expr_true = 226 // expr_true
|
2022-02-18 13:07:37 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/// (Internal) symbol kind.
|
|
|
|
typedef symbol_kind::symbol_kind_type symbol_kind_type;
|
|
|
|
|
|
|
|
/// The number of tokens.
|
|
|
|
static const symbol_kind_type YYNTOKENS = symbol_kind::YYNTOKENS;
|
|
|
|
|
|
|
|
/// A complete symbol.
|
|
|
|
///
|
|
|
|
/// Expects its Base type to provide access to the symbol kind
|
|
|
|
/// via kind ().
|
|
|
|
///
|
|
|
|
/// Provide access to semantic value and location.
|
|
|
|
template <typename Base>
|
|
|
|
struct basic_symbol : Base
|
|
|
|
{
|
|
|
|
/// Alias to Base.
|
|
|
|
typedef Base super_type;
|
|
|
|
|
|
|
|
/// Default constructor.
|
2022-04-12 13:13:10 -04:00
|
|
|
basic_symbol () YY_NOEXCEPT
|
2022-02-18 13:07:37 -05:00
|
|
|
: value ()
|
|
|
|
, location ()
|
|
|
|
{}
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
/// Move constructor.
|
|
|
|
basic_symbol (basic_symbol&& that)
|
|
|
|
: Base (std::move (that))
|
|
|
|
, value ()
|
|
|
|
, location (std::move (that.location))
|
|
|
|
{
|
|
|
|
switch (this->kind ())
|
|
|
|
{
|
|
|
|
case symbol_kind::S_expr_function: // expr_function
|
|
|
|
case symbol_kind::S_expr_pointer: // expr_pointer
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< call::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_declaration: // declaration
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< decl::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2023-05-13 13:24:57 -04:00
|
|
|
case symbol_kind::S_decl_function: // decl_function
|
|
|
|
value.move< decl_function::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_decl_usingtree: // decl_usingtree
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< decl_usingtree::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr: // expr
|
|
|
|
case symbol_kind::S_expr_or_empty: // expr_or_empty
|
|
|
|
case symbol_kind::S_expr_increment: // expr_increment
|
|
|
|
case symbol_kind::S_expr_decrement: // expr_decrement
|
2023-05-13 13:24:57 -04:00
|
|
|
case symbol_kind::S_expr_assign: // expr_assign
|
2022-02-18 13:07:37 -05:00
|
|
|
case symbol_kind::S_expr_ternary: // expr_ternary
|
|
|
|
case symbol_kind::S_expr_binary: // expr_binary
|
|
|
|
case symbol_kind::S_expr_primitive: // expr_primitive
|
2022-10-15 08:49:29 -04:00
|
|
|
case symbol_kind::S_expr_parameters_default: // expr_parameters_default
|
2022-02-18 13:07:37 -05:00
|
|
|
case symbol_kind::S_expr_object: // expr_object
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_abs: // expr_abs
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_abs::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_angleclamp180: // expr_angleclamp180
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_angleclamp180::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_anglestoforward: // expr_anglestoforward
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_anglestoforward::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_anglestoright: // expr_anglestoright
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_anglestoright::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_anglestoup: // expr_anglestoup
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_anglestoup::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_anim: // expr_anim
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_anim::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_animation: // expr_animation
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_animation::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2022-10-14 12:47:38 -04:00
|
|
|
case symbol_kind::S_expr_animtree: // expr_animtree
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_animtree::ptr > (std::move (that.value));
|
2022-10-14 12:47:38 -04:00
|
|
|
break;
|
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
case symbol_kind::S_expr_arguments: // expr_arguments
|
|
|
|
case symbol_kind::S_expr_arguments_no_empty: // expr_arguments_no_empty
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_arguments::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_array: // expr_array
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_array::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_call: // expr_call
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_call::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_complement: // expr_complement
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_complement::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_empty_array: // expr_empty_array
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_empty_array::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_false: // expr_false
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_false::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_field: // expr_field
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_field::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_float: // expr_float
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_float::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_game: // expr_game
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_game::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvar: // expr_getdvar
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_getdvar::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarcoloralpha: // expr_getdvarcoloralpha
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_getdvarcoloralpha::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarcolorblue: // expr_getdvarcolorblue
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_getdvarcolorblue::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarcolorgreen: // expr_getdvarcolorgreen
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_getdvarcolorgreen::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarcolorred: // expr_getdvarcolorred
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_getdvarcolorred::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarfloat: // expr_getdvarfloat
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_getdvarfloat::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarint: // expr_getdvarint
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_getdvarint::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarvector: // expr_getdvarvector
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_getdvarvector::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getfirstarraykey: // expr_getfirstarraykey
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_getfirstarraykey::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getnextarraykey: // expr_getnextarraykey
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_getnextarraykey::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_gettime: // expr_gettime
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_gettime::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_hash: // expr_hash
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_hash::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2022-02-20 06:10:21 -05:00
|
|
|
case symbol_kind::S_expr_identifier_nosize: // expr_identifier_nosize
|
2022-02-18 13:07:37 -05:00
|
|
|
case symbol_kind::S_expr_identifier: // expr_identifier
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_identifier::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_integer: // expr_integer
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_integer::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_isdefined: // expr_isdefined
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_isdefined::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_istring: // expr_istring
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_istring::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_level: // expr_level
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_level::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_method: // expr_method
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_method::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2022-06-15 11:06:58 -04:00
|
|
|
case symbol_kind::S_expr_negate: // expr_negate
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_negate::ptr > (std::move (that.value));
|
2022-06-15 11:06:58 -04:00
|
|
|
break;
|
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
case symbol_kind::S_expr_not: // expr_not
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_not::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_parameters: // expr_parameters
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_parameters::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_paren: // expr_paren
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_paren::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_path: // expr_path
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_path::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_reference: // expr_reference
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_reference::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_self: // expr_self
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_self::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_size: // expr_size
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_size::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_string: // expr_string
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_string::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_true: // expr_true
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_true::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_undefined: // expr_undefined
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_undefined::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_vector: // expr_vector
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_vector::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_vectorscale: // expr_vectorscale
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_vectorscale::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_vectortoangles: // expr_vectortoangles
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_vectortoangles::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_include: // include
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< include::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_program: // program
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< program::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2023-05-13 13:24:57 -04:00
|
|
|
case symbol_kind::S_PATH: // "path"
|
|
|
|
case symbol_kind::S_IDENTIFIER: // "identifier"
|
|
|
|
case symbol_kind::S_STRING: // "string literal"
|
|
|
|
case symbol_kind::S_ISTRING: // "localized string"
|
|
|
|
case symbol_kind::S_HASHSTR: // "hash string"
|
|
|
|
case symbol_kind::S_FLOAT: // "float"
|
|
|
|
case symbol_kind::S_INTEGER: // "integer"
|
|
|
|
value.move< std::string > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2023-05-13 13:24:57 -04:00
|
|
|
case symbol_kind::S_stmt: // stmt
|
|
|
|
case symbol_kind::S_stmt_or_dev: // stmt_or_dev
|
|
|
|
value.move< stmt::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_break: // stmt_break
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_break::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_case: // stmt_case
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_case::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2023-05-13 13:24:57 -04:00
|
|
|
case symbol_kind::S_stmt_comp: // stmt_comp
|
|
|
|
value.move< stmt_comp::ptr > (std::move (that.value));
|
2022-10-20 11:19:34 -04:00
|
|
|
break;
|
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
case symbol_kind::S_stmt_continue: // stmt_continue
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_continue::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_default: // stmt_default
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_default::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_dev: // stmt_dev
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_dev::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_dowhile: // stmt_dowhile
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_dowhile::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_endon: // stmt_endon
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_endon::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_expr: // stmt_expr
|
2023-05-13 13:24:57 -04:00
|
|
|
case symbol_kind::S_stmt_call: // stmt_call
|
|
|
|
case symbol_kind::S_stmt_const: // stmt_const
|
|
|
|
case symbol_kind::S_stmt_assign: // stmt_assign
|
|
|
|
value.move< stmt_expr::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_for: // stmt_for
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_for::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_foreach: // stmt_foreach
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_foreach::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_if: // stmt_if
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_if::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_ifelse: // stmt_ifelse
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_ifelse::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_list: // stmt_list
|
|
|
|
case symbol_kind::S_stmt_or_dev_list: // stmt_or_dev_list
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_list::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_notify: // stmt_notify
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_notify::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_prof_begin: // stmt_prof_begin
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_prof_begin::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_prof_end: // stmt_prof_end
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_prof_end::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_return: // stmt_return
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_return::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_switch: // stmt_switch
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_switch::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_wait: // stmt_wait
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_wait::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_waittill: // stmt_waittill
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_waittill::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_waittillframeend: // stmt_waittillframeend
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_waittillframeend::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_waittillmatch: // stmt_waittillmatch
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_waittillmatch::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_while: // stmt_while
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_while::ptr > (std::move (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/// Copy constructor.
|
|
|
|
basic_symbol (const basic_symbol& that);
|
|
|
|
|
|
|
|
/// Constructors for typed symbols.
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
basic_symbol (typename Base::kind_type t, location_type&& l)
|
|
|
|
: Base (t)
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
|
|
|
basic_symbol (typename Base::kind_type t, const location_type& l)
|
|
|
|
: Base (t)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, call::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const call::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, decl::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const decl::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, decl_function::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const decl_function::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, decl_usingtree::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const decl_usingtree::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_abs::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_abs::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_angleclamp180::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_angleclamp180::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_anglestoforward::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_anglestoforward::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_anglestoright::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_anglestoright::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_anglestoup::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_anglestoup::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
2022-10-14 12:47:38 -04:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_anim::ptr&& v, location_type&& l)
|
2022-10-14 12:47:38 -04:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_anim::ptr& v, const location_type& l)
|
2022-10-14 12:47:38 -04:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_animation::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_animation::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_animtree::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_animtree::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_arguments::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_arguments::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_array::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_array::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_call::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_call::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_complement::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_complement::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_empty_array::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_empty_array::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_false::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_false::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_field::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_field::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_float::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_float::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_game::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_game::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_getdvar::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_getdvar::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_getdvarcoloralpha::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_getdvarcoloralpha::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_getdvarcolorblue::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_getdvarcolorblue::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_getdvarcolorgreen::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_getdvarcolorgreen::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_getdvarcolorred::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_getdvarcolorred::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_getdvarfloat::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_getdvarfloat::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_getdvarint::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_getdvarint::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_getdvarvector::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_getdvarvector::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_getfirstarraykey::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_getfirstarraykey::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_getnextarraykey::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_getnextarraykey::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_gettime::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_gettime::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_hash::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_hash::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_identifier::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_identifier::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_integer::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_integer::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_isdefined::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_isdefined::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_istring::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_istring::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
2022-06-15 11:06:58 -04:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_level::ptr&& v, location_type&& l)
|
2022-06-15 11:06:58 -04:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_level::ptr& v, const location_type& l)
|
2022-06-15 11:06:58 -04:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_method::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_method::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_negate::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_negate::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_not::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_not::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_parameters::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_parameters::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_paren::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_paren::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_path::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_path::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_reference::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_reference::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_self::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_self::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_size::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_size::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_string::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_string::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_true::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_true::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_undefined::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_undefined::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_vector::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_vector::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_vectorscale::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_vectorscale::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, expr_vectortoangles::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const expr_vectortoangles::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, include::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const include::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, program::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const program::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, std::string&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const std::string& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt_break::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt_break::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
2022-10-20 11:19:34 -04:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt_case::ptr&& v, location_type&& l)
|
2022-10-20 11:19:34 -04:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt_case::ptr& v, const location_type& l)
|
2022-10-20 11:19:34 -04:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt_comp::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt_comp::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt_continue::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt_continue::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt_default::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt_default::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt_dev::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt_dev::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt_dowhile::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt_dowhile::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt_endon::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt_endon::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt_expr::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt_expr::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt_for::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt_for::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt_foreach::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt_foreach::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt_if::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt_if::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt_ifelse::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt_ifelse::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt_list::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt_list::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt_notify::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt_notify::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt_prof_begin::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt_prof_begin::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt_prof_end::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt_prof_end::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt_return::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt_return::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt_switch::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt_switch::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt_wait::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt_wait::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt_waittill::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt_waittill::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt_waittillframeend::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt_waittillframeend::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt_waittillmatch::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt_waittillmatch::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, stmt_while::ptr&& v, location_type&& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (std::move (v))
|
|
|
|
, location (std::move (l))
|
|
|
|
{}
|
|
|
|
#else
|
2023-05-13 13:24:57 -04:00
|
|
|
basic_symbol (typename Base::kind_type t, const stmt_while::ptr& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
: Base (t)
|
|
|
|
, value (v)
|
|
|
|
, location (l)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/// Destroy the symbol.
|
|
|
|
~basic_symbol ()
|
|
|
|
{
|
|
|
|
clear ();
|
|
|
|
}
|
|
|
|
|
2022-04-12 13:13:10 -04:00
|
|
|
|
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
/// Destroy contents, and record that is empty.
|
|
|
|
void clear () YY_NOEXCEPT
|
|
|
|
{
|
|
|
|
// User destructor.
|
|
|
|
symbol_kind_type yykind = this->kind ();
|
|
|
|
basic_symbol<Base>& yysym = *this;
|
|
|
|
(void) yysym;
|
|
|
|
switch (yykind)
|
|
|
|
{
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Value type destructor.
|
|
|
|
switch (yykind)
|
|
|
|
{
|
|
|
|
case symbol_kind::S_expr_function: // expr_function
|
|
|
|
case symbol_kind::S_expr_pointer: // expr_pointer
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< call::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_declaration: // declaration
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< decl::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2023-05-13 13:24:57 -04:00
|
|
|
case symbol_kind::S_decl_function: // decl_function
|
|
|
|
value.template destroy< decl_function::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_decl_usingtree: // decl_usingtree
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< decl_usingtree::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr: // expr
|
|
|
|
case symbol_kind::S_expr_or_empty: // expr_or_empty
|
|
|
|
case symbol_kind::S_expr_increment: // expr_increment
|
|
|
|
case symbol_kind::S_expr_decrement: // expr_decrement
|
2023-05-13 13:24:57 -04:00
|
|
|
case symbol_kind::S_expr_assign: // expr_assign
|
2022-02-18 13:07:37 -05:00
|
|
|
case symbol_kind::S_expr_ternary: // expr_ternary
|
|
|
|
case symbol_kind::S_expr_binary: // expr_binary
|
|
|
|
case symbol_kind::S_expr_primitive: // expr_primitive
|
2022-10-15 08:49:29 -04:00
|
|
|
case symbol_kind::S_expr_parameters_default: // expr_parameters_default
|
2022-02-18 13:07:37 -05:00
|
|
|
case symbol_kind::S_expr_object: // expr_object
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_abs: // expr_abs
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_abs::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_angleclamp180: // expr_angleclamp180
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_angleclamp180::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_anglestoforward: // expr_anglestoforward
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_anglestoforward::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_anglestoright: // expr_anglestoright
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_anglestoright::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_anglestoup: // expr_anglestoup
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_anglestoup::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_anim: // expr_anim
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_anim::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_animation: // expr_animation
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_animation::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2022-10-14 12:47:38 -04:00
|
|
|
case symbol_kind::S_expr_animtree: // expr_animtree
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_animtree::ptr > ();
|
2022-10-14 12:47:38 -04:00
|
|
|
break;
|
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
case symbol_kind::S_expr_arguments: // expr_arguments
|
|
|
|
case symbol_kind::S_expr_arguments_no_empty: // expr_arguments_no_empty
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_arguments::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_array: // expr_array
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_array::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_call: // expr_call
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_call::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_complement: // expr_complement
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_complement::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_empty_array: // expr_empty_array
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_empty_array::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_false: // expr_false
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_false::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_field: // expr_field
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_field::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_float: // expr_float
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_float::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_game: // expr_game
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_game::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvar: // expr_getdvar
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_getdvar::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarcoloralpha: // expr_getdvarcoloralpha
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_getdvarcoloralpha::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarcolorblue: // expr_getdvarcolorblue
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_getdvarcolorblue::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarcolorgreen: // expr_getdvarcolorgreen
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_getdvarcolorgreen::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarcolorred: // expr_getdvarcolorred
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_getdvarcolorred::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarfloat: // expr_getdvarfloat
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_getdvarfloat::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarint: // expr_getdvarint
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_getdvarint::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarvector: // expr_getdvarvector
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_getdvarvector::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getfirstarraykey: // expr_getfirstarraykey
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_getfirstarraykey::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getnextarraykey: // expr_getnextarraykey
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_getnextarraykey::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_gettime: // expr_gettime
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_gettime::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_hash: // expr_hash
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_hash::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2022-02-20 06:10:21 -05:00
|
|
|
case symbol_kind::S_expr_identifier_nosize: // expr_identifier_nosize
|
2022-02-18 13:07:37 -05:00
|
|
|
case symbol_kind::S_expr_identifier: // expr_identifier
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_identifier::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_integer: // expr_integer
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_integer::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_isdefined: // expr_isdefined
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_isdefined::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_istring: // expr_istring
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_istring::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_level: // expr_level
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_level::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_method: // expr_method
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_method::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2022-06-15 11:06:58 -04:00
|
|
|
case symbol_kind::S_expr_negate: // expr_negate
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_negate::ptr > ();
|
2022-06-15 11:06:58 -04:00
|
|
|
break;
|
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
case symbol_kind::S_expr_not: // expr_not
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_not::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_parameters: // expr_parameters
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_parameters::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_paren: // expr_paren
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_paren::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_path: // expr_path
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_path::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_reference: // expr_reference
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_reference::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_self: // expr_self
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_self::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_size: // expr_size
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_size::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_string: // expr_string
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_string::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_true: // expr_true
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_true::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_undefined: // expr_undefined
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_undefined::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_vector: // expr_vector
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_vector::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_vectorscale: // expr_vectorscale
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_vectorscale::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_vectortoangles: // expr_vectortoangles
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< expr_vectortoangles::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_include: // include
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< include::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_program: // program
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< program::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2023-05-13 13:24:57 -04:00
|
|
|
case symbol_kind::S_PATH: // "path"
|
|
|
|
case symbol_kind::S_IDENTIFIER: // "identifier"
|
|
|
|
case symbol_kind::S_STRING: // "string literal"
|
|
|
|
case symbol_kind::S_ISTRING: // "localized string"
|
|
|
|
case symbol_kind::S_HASHSTR: // "hash string"
|
|
|
|
case symbol_kind::S_FLOAT: // "float"
|
|
|
|
case symbol_kind::S_INTEGER: // "integer"
|
|
|
|
value.template destroy< std::string > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2023-05-13 13:24:57 -04:00
|
|
|
case symbol_kind::S_stmt: // stmt
|
|
|
|
case symbol_kind::S_stmt_or_dev: // stmt_or_dev
|
|
|
|
value.template destroy< stmt::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_break: // stmt_break
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< stmt_break::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_case: // stmt_case
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< stmt_case::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2023-05-13 13:24:57 -04:00
|
|
|
case symbol_kind::S_stmt_comp: // stmt_comp
|
|
|
|
value.template destroy< stmt_comp::ptr > ();
|
2022-10-20 11:19:34 -04:00
|
|
|
break;
|
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
case symbol_kind::S_stmt_continue: // stmt_continue
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< stmt_continue::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_default: // stmt_default
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< stmt_default::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_dev: // stmt_dev
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< stmt_dev::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_dowhile: // stmt_dowhile
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< stmt_dowhile::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_endon: // stmt_endon
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< stmt_endon::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_expr: // stmt_expr
|
2023-05-13 13:24:57 -04:00
|
|
|
case symbol_kind::S_stmt_call: // stmt_call
|
|
|
|
case symbol_kind::S_stmt_const: // stmt_const
|
|
|
|
case symbol_kind::S_stmt_assign: // stmt_assign
|
|
|
|
value.template destroy< stmt_expr::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_for: // stmt_for
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< stmt_for::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_foreach: // stmt_foreach
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< stmt_foreach::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_if: // stmt_if
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< stmt_if::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_ifelse: // stmt_ifelse
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< stmt_ifelse::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_list: // stmt_list
|
|
|
|
case symbol_kind::S_stmt_or_dev_list: // stmt_or_dev_list
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< stmt_list::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_notify: // stmt_notify
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< stmt_notify::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_prof_begin: // stmt_prof_begin
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< stmt_prof_begin::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_prof_end: // stmt_prof_end
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< stmt_prof_end::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_return: // stmt_return
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< stmt_return::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_switch: // stmt_switch
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< stmt_switch::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_wait: // stmt_wait
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< stmt_wait::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_waittill: // stmt_waittill
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< stmt_waittill::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_waittillframeend: // stmt_waittillframeend
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< stmt_waittillframeend::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_waittillmatch: // stmt_waittillmatch
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< stmt_waittillmatch::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_while: // stmt_while
|
2023-05-13 13:24:57 -04:00
|
|
|
value.template destroy< stmt_while::ptr > ();
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
Base::clear ();
|
|
|
|
}
|
|
|
|
|
|
|
|
/// The user-facing name of this symbol.
|
|
|
|
const char *name () const YY_NOEXCEPT
|
|
|
|
{
|
|
|
|
return parser::symbol_name (this->kind ());
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Backward compatibility (Bison 3.6).
|
|
|
|
symbol_kind_type type_get () const YY_NOEXCEPT;
|
|
|
|
|
|
|
|
/// Whether empty.
|
|
|
|
bool empty () const YY_NOEXCEPT;
|
|
|
|
|
|
|
|
/// Destructive move, \a s is emptied into this.
|
|
|
|
void move (basic_symbol& s);
|
|
|
|
|
|
|
|
/// The semantic value.
|
2022-04-12 13:13:10 -04:00
|
|
|
value_type value;
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
/// The location.
|
|
|
|
location_type location;
|
|
|
|
|
|
|
|
private:
|
|
|
|
#if YY_CPLUSPLUS < 201103L
|
|
|
|
/// Assignment operator.
|
|
|
|
basic_symbol& operator= (const basic_symbol& that);
|
|
|
|
#endif
|
|
|
|
};
|
|
|
|
|
|
|
|
/// Type access provider for token (enum) based symbols.
|
|
|
|
struct by_kind
|
|
|
|
{
|
2022-04-12 13:13:10 -04:00
|
|
|
/// The symbol kind as needed by the constructor.
|
|
|
|
typedef token_kind_type kind_type;
|
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
/// Default constructor.
|
2022-04-12 13:13:10 -04:00
|
|
|
by_kind () YY_NOEXCEPT;
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
/// Move constructor.
|
2022-04-12 13:13:10 -04:00
|
|
|
by_kind (by_kind&& that) YY_NOEXCEPT;
|
2022-02-18 13:07:37 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/// Copy constructor.
|
2022-04-12 13:13:10 -04:00
|
|
|
by_kind (const by_kind& that) YY_NOEXCEPT;
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
/// Constructor from (external) token numbers.
|
2022-04-12 13:13:10 -04:00
|
|
|
by_kind (kind_type t) YY_NOEXCEPT;
|
|
|
|
|
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
/// Record that this symbol is empty.
|
|
|
|
void clear () YY_NOEXCEPT;
|
|
|
|
|
|
|
|
/// Steal the symbol kind from \a that.
|
|
|
|
void move (by_kind& that);
|
|
|
|
|
|
|
|
/// The (internal) type number (corresponding to \a type).
|
|
|
|
/// \a empty when empty.
|
|
|
|
symbol_kind_type kind () const YY_NOEXCEPT;
|
|
|
|
|
|
|
|
/// Backward compatibility (Bison 3.6).
|
|
|
|
symbol_kind_type type_get () const YY_NOEXCEPT;
|
|
|
|
|
|
|
|
/// The symbol kind.
|
|
|
|
/// \a S_YYEMPTY when empty.
|
|
|
|
symbol_kind_type kind_;
|
|
|
|
};
|
|
|
|
|
|
|
|
/// Backward compatibility for a private implementation detail (Bison 3.6).
|
|
|
|
typedef by_kind by_type;
|
|
|
|
|
|
|
|
/// "External" symbols: returned by the scanner.
|
|
|
|
struct symbol_type : basic_symbol<by_kind>
|
|
|
|
{
|
|
|
|
/// Superclass.
|
|
|
|
typedef basic_symbol<by_kind> super_type;
|
|
|
|
|
|
|
|
/// Empty symbol.
|
2022-04-12 13:13:10 -04:00
|
|
|
symbol_type () YY_NOEXCEPT {}
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
/// Constructor for valueless symbols, and symbols from each type.
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
symbol_type (int tok, location_type l)
|
2022-04-12 13:13:10 -04:00
|
|
|
: super_type (token_kind_type (tok), std::move (l))
|
2022-02-18 13:07:37 -05:00
|
|
|
#else
|
|
|
|
symbol_type (int tok, const location_type& l)
|
2022-04-12 13:13:10 -04:00
|
|
|
: super_type (token_kind_type (tok), l)
|
2022-02-18 13:07:37 -05:00
|
|
|
#endif
|
|
|
|
{
|
2022-04-12 13:13:10 -04:00
|
|
|
#if !defined _MSC_VER || defined __clang__
|
2023-05-13 13:24:57 -04:00
|
|
|
ARC_ASSERT (tok == token::ARCEOF
|
|
|
|
|| (token::ARCerror <= tok && tok <= token::MOD)
|
2022-02-20 06:10:21 -05:00
|
|
|
|| (token::SIZEOF <= tok && tok <= token::POSTDEC));
|
2022-04-12 13:13:10 -04:00
|
|
|
#endif
|
2022-02-18 13:07:37 -05:00
|
|
|
}
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
symbol_type (int tok, std::string v, location_type l)
|
2022-04-12 13:13:10 -04:00
|
|
|
: super_type (token_kind_type (tok), std::move (v), std::move (l))
|
2022-02-18 13:07:37 -05:00
|
|
|
#else
|
|
|
|
symbol_type (int tok, const std::string& v, const location_type& l)
|
2022-04-12 13:13:10 -04:00
|
|
|
: super_type (token_kind_type (tok), v, l)
|
2022-02-18 13:07:37 -05:00
|
|
|
#endif
|
|
|
|
{
|
2022-04-12 13:13:10 -04:00
|
|
|
#if !defined _MSC_VER || defined __clang__
|
2023-05-13 13:24:57 -04:00
|
|
|
ARC_ASSERT ((token::PATH <= tok && tok <= token::INTEGER));
|
2022-04-12 13:13:10 -04:00
|
|
|
#endif
|
2022-02-18 13:07:37 -05:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
/// Build a parser object.
|
2023-05-13 13:24:57 -04:00
|
|
|
parser (xsk::arc::context const* ctx__yyarg, xsk::arc::preprocessor& ppr_yyarg, xsk::arc::program::ptr& ast_yyarg, std::uint32_t index_yyarg);
|
2022-02-18 13:07:37 -05:00
|
|
|
virtual ~parser ();
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
/// Non copyable.
|
|
|
|
parser (const parser&) = delete;
|
|
|
|
/// Non copyable.
|
|
|
|
parser& operator= (const parser&) = delete;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/// Parse. An alias for parse ().
|
|
|
|
/// \returns 0 iff parsing succeeded.
|
|
|
|
int operator() ();
|
|
|
|
|
|
|
|
/// Parse.
|
|
|
|
/// \returns 0 iff parsing succeeded.
|
|
|
|
virtual int parse ();
|
|
|
|
|
2023-05-13 13:24:57 -04:00
|
|
|
#if ARCDEBUG
|
2022-02-18 13:07:37 -05:00
|
|
|
/// The current debugging stream.
|
|
|
|
std::ostream& debug_stream () const YY_ATTRIBUTE_PURE;
|
|
|
|
/// Set the current debugging stream.
|
|
|
|
void set_debug_stream (std::ostream &);
|
|
|
|
|
|
|
|
/// Type for debugging levels.
|
|
|
|
typedef int debug_level_type;
|
|
|
|
/// The current debugging level.
|
|
|
|
debug_level_type debug_level () const YY_ATTRIBUTE_PURE;
|
|
|
|
/// Set the current debugging level.
|
|
|
|
void set_debug_level (debug_level_type l);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/// Report a syntax error.
|
|
|
|
/// \param loc where the syntax error is found.
|
|
|
|
/// \param msg a description of the syntax error.
|
|
|
|
virtual void error (const location_type& loc, const std::string& msg);
|
|
|
|
|
|
|
|
/// Report a syntax error.
|
|
|
|
void error (const syntax_error& err);
|
|
|
|
|
|
|
|
/// The user-facing name of the symbol whose (internal) number is
|
|
|
|
/// YYSYMBOL. No bounds checking.
|
|
|
|
static const char *symbol_name (symbol_kind_type yysymbol);
|
|
|
|
|
2022-04-12 13:13:10 -04:00
|
|
|
// Implementation of make_symbol for each token kind.
|
2022-02-18 13:07:37 -05:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
2023-05-13 13:24:57 -04:00
|
|
|
make_ARCEOF (location_type l)
|
2022-02-18 13:07:37 -05:00
|
|
|
{
|
2023-05-13 13:24:57 -04:00
|
|
|
return symbol_type (token::ARCEOF, std::move (l));
|
2022-02-18 13:07:37 -05:00
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
2023-05-13 13:24:57 -04:00
|
|
|
make_ARCEOF (const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
{
|
2023-05-13 13:24:57 -04:00
|
|
|
return symbol_type (token::ARCEOF, l);
|
2022-02-18 13:07:37 -05:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
2023-05-13 13:24:57 -04:00
|
|
|
make_ARCerror (location_type l)
|
2022-02-18 13:07:37 -05:00
|
|
|
{
|
2023-05-13 13:24:57 -04:00
|
|
|
return symbol_type (token::ARCerror, std::move (l));
|
2022-02-18 13:07:37 -05:00
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
2023-05-13 13:24:57 -04:00
|
|
|
make_ARCerror (const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
{
|
2023-05-13 13:24:57 -04:00
|
|
|
return symbol_type (token::ARCerror, l);
|
2022-02-18 13:07:37 -05:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
2023-05-13 13:24:57 -04:00
|
|
|
make_ARCUNDEF (location_type l)
|
2022-02-18 13:07:37 -05:00
|
|
|
{
|
2023-05-13 13:24:57 -04:00
|
|
|
return symbol_type (token::ARCUNDEF, std::move (l));
|
2022-02-18 13:07:37 -05:00
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
2023-05-13 13:24:57 -04:00
|
|
|
make_ARCUNDEF (const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
{
|
2023-05-13 13:24:57 -04:00
|
|
|
return symbol_type (token::ARCUNDEF, l);
|
2022-02-18 13:07:37 -05:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
2023-05-13 13:24:57 -04:00
|
|
|
make_HASH (location_type l)
|
2022-02-18 13:07:37 -05:00
|
|
|
{
|
2023-05-13 13:24:57 -04:00
|
|
|
return symbol_type (token::HASH, std::move (l));
|
2022-02-18 13:07:37 -05:00
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
2023-05-13 13:24:57 -04:00
|
|
|
make_HASH (const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
{
|
2023-05-13 13:24:57 -04:00
|
|
|
return symbol_type (token::HASH, l);
|
2022-02-18 13:07:37 -05:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DEVBEGIN (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::DEVBEGIN, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DEVBEGIN (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::DEVBEGIN, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DEVEND (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::DEVEND, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DEVEND (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::DEVEND, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_INLINE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::INLINE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_INLINE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::INLINE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_INCLUDE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::INCLUDE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_INCLUDE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::INCLUDE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_USINGTREE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::USINGTREE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_USINGTREE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::USINGTREE, l);
|
|
|
|
}
|
|
|
|
#endif
|
2022-10-14 12:47:38 -04:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ANIMTREE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ANIMTREE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ANIMTREE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ANIMTREE, l);
|
|
|
|
}
|
|
|
|
#endif
|
2022-10-15 10:20:48 -04:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_AUTOEXEC (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::AUTOEXEC, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_AUTOEXEC (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::AUTOEXEC, l);
|
|
|
|
}
|
|
|
|
#endif
|
2022-10-21 14:49:27 -04:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CODECALL (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::CODECALL, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CODECALL (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::CODECALL, l);
|
|
|
|
}
|
|
|
|
#endif
|
2022-10-15 10:20:48 -04:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_PRIVATE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::PRIVATE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_PRIVATE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::PRIVATE, l);
|
|
|
|
}
|
|
|
|
#endif
|
2022-02-18 13:07:37 -05:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ENDON (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ENDON, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ENDON (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ENDON, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_NOTIFY (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::NOTIFY, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_NOTIFY (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::NOTIFY, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_WAIT (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::WAIT, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_WAIT (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::WAIT, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_WAITTILL (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::WAITTILL, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_WAITTILL (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::WAITTILL, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_WAITTILLMATCH (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::WAITTILLMATCH, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_WAITTILLMATCH (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::WAITTILLMATCH, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_WAITTILLFRAMEEND (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::WAITTILLFRAMEEND, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_WAITTILLFRAMEEND (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::WAITTILLFRAMEEND, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_IF (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::IF, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_IF (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::IF, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ELSE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ELSE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ELSE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ELSE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DO (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::DO, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DO (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::DO, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_WHILE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::WHILE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_WHILE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::WHILE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_FOR (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::FOR, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_FOR (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::FOR, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_FOREACH (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::FOREACH, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_FOREACH (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::FOREACH, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_IN (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::IN, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_IN (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::IN, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SWITCH (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::SWITCH, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SWITCH (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::SWITCH, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CASE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::CASE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CASE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::CASE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DEFAULT (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::DEFAULT, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DEFAULT (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::DEFAULT, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_BREAK (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::BREAK, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_BREAK (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::BREAK, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CONTINUE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::CONTINUE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CONTINUE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::CONTINUE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_RETURN (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::RETURN, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_RETURN (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::RETURN, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_PROFBEGIN (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::PROFBEGIN, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_PROFBEGIN (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::PROFBEGIN, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_PROFEND (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::PROFEND, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_PROFEND (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::PROFEND, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_THREAD (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::THREAD, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_THREAD (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::THREAD, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_TRUE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TRUE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_TRUE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TRUE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_FALSE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::FALSE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_FALSE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::FALSE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_UNDEFINED (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::UNDEFINED, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_UNDEFINED (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::UNDEFINED, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SIZE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::SIZE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SIZE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::SIZE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GAME (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GAME, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GAME (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GAME, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SELF (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::SELF, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SELF (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::SELF, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ANIM (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ANIM, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ANIM (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ANIM, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_LEVEL (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::LEVEL, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_LEVEL (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::LEVEL, l);
|
|
|
|
}
|
|
|
|
#endif
|
2022-10-20 11:19:34 -04:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CONST (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::CONST, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_CONST (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::CONST, l);
|
|
|
|
}
|
|
|
|
#endif
|
2022-02-18 13:07:37 -05:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GETNEXTARRAYKEY (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GETNEXTARRAYKEY, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GETNEXTARRAYKEY (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GETNEXTARRAYKEY, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GETFIRSTARRAYKEY (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GETFIRSTARRAYKEY, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GETFIRSTARRAYKEY (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GETFIRSTARRAYKEY, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GETDVARCOLORALPHA (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GETDVARCOLORALPHA, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GETDVARCOLORALPHA (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GETDVARCOLORALPHA, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GETDVARCOLORBLUE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GETDVARCOLORBLUE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GETDVARCOLORBLUE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GETDVARCOLORBLUE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GETDVARCOLORGREEN (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GETDVARCOLORGREEN, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GETDVARCOLORGREEN (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GETDVARCOLORGREEN, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GETDVARCOLORRED (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GETDVARCOLORRED, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GETDVARCOLORRED (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GETDVARCOLORRED, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GETDVARVECTOR (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GETDVARVECTOR, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GETDVARVECTOR (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GETDVARVECTOR, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GETDVARFLOAT (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GETDVARFLOAT, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GETDVARFLOAT (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GETDVARFLOAT, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GETDVARINT (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GETDVARINT, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GETDVARINT (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GETDVARINT, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GETDVAR (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GETDVAR, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GETDVAR (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GETDVAR, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GETTIME (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GETTIME, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GETTIME (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GETTIME, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ABS (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ABS, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ABS (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ABS, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_VECTORTOANGLES (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::VECTORTOANGLES, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_VECTORTOANGLES (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::VECTORTOANGLES, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ANGLECLAMP180 (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ANGLECLAMP180, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ANGLECLAMP180 (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ANGLECLAMP180, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ANGLESTOFORWARD (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ANGLESTOFORWARD, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ANGLESTOFORWARD (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ANGLESTOFORWARD, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ANGLESTORIGHT (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ANGLESTORIGHT, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ANGLESTORIGHT (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ANGLESTORIGHT, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ANGLESTOUP (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ANGLESTOUP, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ANGLESTOUP (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ANGLESTOUP, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_VECTORSCALE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::VECTORSCALE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_VECTORSCALE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::VECTORSCALE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ISDEFINED (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ISDEFINED, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ISDEFINED (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ISDEFINED, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_LPAREN (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::LPAREN, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_LPAREN (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::LPAREN, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_RPAREN (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::RPAREN, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_RPAREN (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::RPAREN, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_LBRACE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::LBRACE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_LBRACE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::LBRACE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_RBRACE (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::RBRACE, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_RBRACE (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::RBRACE, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_LBRACKET (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::LBRACKET, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_LBRACKET (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::LBRACKET, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_RBRACKET (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::RBRACKET, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_RBRACKET (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::RBRACKET, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_COMMA (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::COMMA, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_COMMA (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::COMMA, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DOT (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::DOT, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DOT (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::DOT, l);
|
|
|
|
}
|
|
|
|
#endif
|
2023-05-13 13:24:57 -04:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DOUBLEDOT (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::DOUBLEDOT, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DOUBLEDOT (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::DOUBLEDOT, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ELLIPSIS (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ELLIPSIS, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ELLIPSIS (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ELLIPSIS, l);
|
|
|
|
}
|
|
|
|
#endif
|
2022-02-18 13:07:37 -05:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DOUBLECOLON (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::DOUBLECOLON, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DOUBLECOLON (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::DOUBLECOLON, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_COLON (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::COLON, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_COLON (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::COLON, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SEMICOLON (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::SEMICOLON, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SEMICOLON (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::SEMICOLON, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_QMARK (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::QMARK, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_QMARK (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::QMARK, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_INCREMENT (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::INCREMENT, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_INCREMENT (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::INCREMENT, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DECREMENT (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::DECREMENT, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DECREMENT (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::DECREMENT, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_LSHIFT (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::LSHIFT, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_LSHIFT (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::LSHIFT, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_RSHIFT (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::RSHIFT, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_RSHIFT (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::RSHIFT, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_OR (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::OR, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_OR (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::OR, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_AND (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::AND, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_AND (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::AND, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_EQUALITY (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::EQUALITY, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_EQUALITY (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::EQUALITY, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_INEQUALITY (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::INEQUALITY, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_INEQUALITY (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::INEQUALITY, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_LESS_EQUAL (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::LESS_EQUAL, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_LESS_EQUAL (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::LESS_EQUAL, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GREATER_EQUAL (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GREATER_EQUAL, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GREATER_EQUAL (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GREATER_EQUAL, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_LESS (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::LESS, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_LESS (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::LESS, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GREATER (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GREATER, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_GREATER (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::GREATER, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_NOT (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::NOT, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_NOT (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::NOT, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_COMPLEMENT (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::COMPLEMENT, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_COMPLEMENT (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::COMPLEMENT, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ASSIGN (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ASSIGN, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ASSIGN (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ASSIGN, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ASSIGN_ADD (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ASSIGN_ADD, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ASSIGN_ADD (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ASSIGN_ADD, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ASSIGN_SUB (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ASSIGN_SUB, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ASSIGN_SUB (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ASSIGN_SUB, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ASSIGN_MUL (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ASSIGN_MUL, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ASSIGN_MUL (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ASSIGN_MUL, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ASSIGN_DIV (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ASSIGN_DIV, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ASSIGN_DIV (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ASSIGN_DIV, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ASSIGN_MOD (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ASSIGN_MOD, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ASSIGN_MOD (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ASSIGN_MOD, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ASSIGN_BW_OR (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ASSIGN_BW_OR, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ASSIGN_BW_OR (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ASSIGN_BW_OR, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ASSIGN_BW_AND (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ASSIGN_BW_AND, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ASSIGN_BW_AND (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ASSIGN_BW_AND, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ASSIGN_BW_EXOR (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ASSIGN_BW_EXOR, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ASSIGN_BW_EXOR (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ASSIGN_BW_EXOR, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ASSIGN_RSHIFT (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ASSIGN_RSHIFT, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ASSIGN_RSHIFT (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ASSIGN_RSHIFT, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ASSIGN_LSHIFT (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ASSIGN_LSHIFT, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ASSIGN_LSHIFT (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ASSIGN_LSHIFT, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_BITWISE_OR (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::BITWISE_OR, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_BITWISE_OR (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::BITWISE_OR, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_BITWISE_AND (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::BITWISE_AND, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_BITWISE_AND (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::BITWISE_AND, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_BITWISE_EXOR (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::BITWISE_EXOR, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_BITWISE_EXOR (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::BITWISE_EXOR, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ADD (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ADD, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ADD (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ADD, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SUB (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::SUB, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SUB (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::SUB, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_MUL (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::MUL, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_MUL (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::MUL, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DIV (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::DIV, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_DIV (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::DIV, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_MOD (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::MOD, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_MOD (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::MOD, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_PATH (std::string v, location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::PATH, std::move (v), std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_PATH (const std::string& v, const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::PATH, v, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_IDENTIFIER (std::string v, location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::IDENTIFIER, std::move (v), std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_IDENTIFIER (const std::string& v, const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::IDENTIFIER, v, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_STRING (std::string v, location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::STRING, std::move (v), std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_STRING (const std::string& v, const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::STRING, v, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ISTRING (std::string v, location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ISTRING, std::move (v), std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ISTRING (const std::string& v, const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ISTRING, v, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
2023-05-13 13:24:57 -04:00
|
|
|
make_HASHSTR (std::string v, location_type l)
|
2022-02-18 13:07:37 -05:00
|
|
|
{
|
2023-05-13 13:24:57 -04:00
|
|
|
return symbol_type (token::HASHSTR, std::move (v), std::move (l));
|
2022-02-18 13:07:37 -05:00
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
2023-05-13 13:24:57 -04:00
|
|
|
make_HASHSTR (const std::string& v, const location_type& l)
|
2022-02-18 13:07:37 -05:00
|
|
|
{
|
2023-05-13 13:24:57 -04:00
|
|
|
return symbol_type (token::HASHSTR, v, l);
|
2022-02-18 13:07:37 -05:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_FLOAT (std::string v, location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::FLOAT, std::move (v), std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_FLOAT (const std::string& v, const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::FLOAT, v, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_INTEGER (std::string v, location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::INTEGER, std::move (v), std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_INTEGER (const std::string& v, const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::INTEGER, v, l);
|
|
|
|
}
|
|
|
|
#endif
|
2022-02-20 06:10:21 -05:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SIZEOF (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::SIZEOF, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_SIZEOF (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::SIZEOF, l);
|
|
|
|
}
|
|
|
|
#endif
|
2022-02-18 13:07:37 -05:00
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_THEN (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::THEN, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_THEN (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::THEN, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_TERN (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TERN, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_TERN (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::TERN, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_NEG (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::NEG, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_NEG (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::NEG, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ANIMREF (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ANIMREF, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_ANIMREF (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::ANIMREF, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_PREINC (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::PREINC, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_PREINC (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::PREINC, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_PREDEC (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::PREDEC, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_PREDEC (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::PREDEC, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_POSTINC (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::POSTINC, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_POSTINC (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::POSTINC, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_POSTDEC (location_type l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::POSTDEC, std::move (l));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static
|
|
|
|
symbol_type
|
|
|
|
make_POSTDEC (const location_type& l)
|
|
|
|
{
|
|
|
|
return symbol_type (token::POSTDEC, l);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
class context
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
context (const parser& yyparser, const symbol_type& yyla);
|
|
|
|
const symbol_type& lookahead () const YY_NOEXCEPT { return yyla_; }
|
|
|
|
symbol_kind_type token () const YY_NOEXCEPT { return yyla_.kind (); }
|
|
|
|
const location_type& location () const YY_NOEXCEPT { return yyla_.location; }
|
|
|
|
|
|
|
|
/// Put in YYARG at most YYARGN of the expected tokens, and return the
|
|
|
|
/// number of tokens stored in YYARG. If YYARG is null, return the
|
|
|
|
/// number of expected tokens (guaranteed to be less than YYNTOKENS).
|
|
|
|
int expected_tokens (symbol_kind_type yyarg[], int yyargn) const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
const parser& yyparser_;
|
|
|
|
const symbol_type& yyla_;
|
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
|
|
|
#if YY_CPLUSPLUS < 201103L
|
|
|
|
/// Non copyable.
|
|
|
|
parser (const parser&);
|
|
|
|
/// Non copyable.
|
|
|
|
parser& operator= (const parser&);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/// Check the lookahead yytoken.
|
|
|
|
/// \returns true iff the token will be eventually shifted.
|
|
|
|
bool yy_lac_check_ (symbol_kind_type yytoken) const;
|
|
|
|
/// Establish the initial context if no initial context currently exists.
|
|
|
|
/// \returns true iff the token will be eventually shifted.
|
|
|
|
bool yy_lac_establish_ (symbol_kind_type yytoken);
|
|
|
|
/// Discard any previous initial lookahead context because of event.
|
|
|
|
/// \param event the event which caused the lookahead to be discarded.
|
|
|
|
/// Only used for debbuging output.
|
|
|
|
void yy_lac_discard_ (const char* event);
|
|
|
|
|
|
|
|
/// Stored state numbers (used for stacks).
|
|
|
|
typedef short state_type;
|
|
|
|
|
|
|
|
/// The arguments of the error message.
|
|
|
|
int yy_syntax_error_arguments_ (const context& yyctx,
|
|
|
|
symbol_kind_type yyarg[], int yyargn) const;
|
|
|
|
|
|
|
|
/// Generate an error message.
|
|
|
|
/// \param yyctx the context in which the error occurred.
|
|
|
|
virtual std::string yysyntax_error_ (const context& yyctx) const;
|
|
|
|
/// Compute post-reduction state.
|
|
|
|
/// \param yystate the current state
|
|
|
|
/// \param yysym the nonterminal to push on the stack
|
|
|
|
static state_type yy_lr_goto_state_ (state_type yystate, int yysym);
|
|
|
|
|
|
|
|
/// Whether the given \c yypact_ value indicates a defaulted state.
|
|
|
|
/// \param yyvalue the value to check
|
2022-04-12 13:13:10 -04:00
|
|
|
static bool yy_pact_value_is_default_ (int yyvalue) YY_NOEXCEPT;
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
/// Whether the given \c yytable_ value indicates a syntax error.
|
|
|
|
/// \param yyvalue the value to check
|
2022-04-12 13:13:10 -04:00
|
|
|
static bool yy_table_value_is_error_ (int yyvalue) YY_NOEXCEPT;
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
static const short yypact_ninf_;
|
|
|
|
static const short yytable_ninf_;
|
|
|
|
|
|
|
|
/// Convert a scanner token kind \a t to a symbol kind.
|
|
|
|
/// In theory \a t should be a token_kind_type, but character literals
|
2022-04-12 13:13:10 -04:00
|
|
|
/// are valid, yet not members of the token_kind_type enum.
|
|
|
|
static symbol_kind_type yytranslate_ (int t) YY_NOEXCEPT;
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Tables.
|
|
|
|
// YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
|
|
|
|
// STATE-NUM.
|
|
|
|
static const short yypact_[];
|
|
|
|
|
|
|
|
// YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
|
|
|
|
// Performed when YYTABLE does not specify something else to do. Zero
|
|
|
|
// means the default is an error.
|
2022-06-15 11:06:58 -04:00
|
|
|
static const short yydefact_[];
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
// YYPGOTO[NTERM-NUM].
|
|
|
|
static const short yypgoto_[];
|
|
|
|
|
|
|
|
// YYDEFGOTO[NTERM-NUM].
|
|
|
|
static const short yydefgoto_[];
|
|
|
|
|
|
|
|
// YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
|
|
|
|
// positive, shift that token. If negative, reduce the rule whose
|
|
|
|
// number is the opposite. If YYTABLE_NINF, syntax error.
|
|
|
|
static const short yytable_[];
|
|
|
|
|
|
|
|
static const short yycheck_[];
|
|
|
|
|
2022-04-12 13:13:10 -04:00
|
|
|
// YYSTOS[STATE-NUM] -- The symbol kind of the accessing symbol of
|
|
|
|
// state STATE-NUM.
|
2022-02-18 13:07:37 -05:00
|
|
|
static const unsigned char yystos_[];
|
|
|
|
|
2022-04-12 13:13:10 -04:00
|
|
|
// YYR1[RULE-NUM] -- Symbol kind of the left-hand side of rule RULE-NUM.
|
2022-02-18 13:07:37 -05:00
|
|
|
static const unsigned char yyr1_[];
|
|
|
|
|
2022-04-12 13:13:10 -04:00
|
|
|
// YYR2[RULE-NUM] -- Number of symbols on the right-hand side of rule RULE-NUM.
|
2022-02-18 13:07:37 -05:00
|
|
|
static const signed char yyr2_[];
|
|
|
|
|
|
|
|
|
2023-05-13 13:24:57 -04:00
|
|
|
#if ARCDEBUG
|
2022-02-18 13:07:37 -05:00
|
|
|
// YYRLINE[YYN] -- Source line where rule number YYN was defined.
|
|
|
|
static const short yyrline_[];
|
|
|
|
/// Report on the debug stream that the rule \a r is going to be reduced.
|
|
|
|
virtual void yy_reduce_print_ (int r) const;
|
|
|
|
/// Print the state stack on the debug stream.
|
|
|
|
virtual void yy_stack_print_ () const;
|
|
|
|
|
|
|
|
/// Debugging level.
|
|
|
|
int yydebug_;
|
|
|
|
/// Debug stream.
|
|
|
|
std::ostream* yycdebug_;
|
|
|
|
|
|
|
|
/// \brief Display a symbol kind, value and location.
|
|
|
|
/// \param yyo The output stream.
|
|
|
|
/// \param yysym The symbol.
|
|
|
|
template <typename Base>
|
|
|
|
void yy_print_ (std::ostream& yyo, const basic_symbol<Base>& yysym) const;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/// \brief Reclaim the memory associated to a symbol.
|
|
|
|
/// \param yymsg Why this token is reclaimed.
|
|
|
|
/// If null, print nothing.
|
|
|
|
/// \param yysym The symbol.
|
|
|
|
template <typename Base>
|
|
|
|
void yy_destroy_ (const char* yymsg, basic_symbol<Base>& yysym) const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
/// Type access provider for state based symbols.
|
|
|
|
struct by_state
|
|
|
|
{
|
|
|
|
/// Default constructor.
|
|
|
|
by_state () YY_NOEXCEPT;
|
|
|
|
|
|
|
|
/// The symbol kind as needed by the constructor.
|
|
|
|
typedef state_type kind_type;
|
|
|
|
|
|
|
|
/// Constructor.
|
|
|
|
by_state (kind_type s) YY_NOEXCEPT;
|
|
|
|
|
|
|
|
/// Copy constructor.
|
|
|
|
by_state (const by_state& that) YY_NOEXCEPT;
|
|
|
|
|
|
|
|
/// Record that this symbol is empty.
|
|
|
|
void clear () YY_NOEXCEPT;
|
|
|
|
|
|
|
|
/// Steal the symbol kind from \a that.
|
|
|
|
void move (by_state& that);
|
|
|
|
|
|
|
|
/// The symbol kind (corresponding to \a state).
|
|
|
|
/// \a symbol_kind::S_YYEMPTY when empty.
|
|
|
|
symbol_kind_type kind () const YY_NOEXCEPT;
|
|
|
|
|
|
|
|
/// The state number used to denote an empty symbol.
|
|
|
|
/// We use the initial state, as it does not have a value.
|
|
|
|
enum { empty_state = 0 };
|
|
|
|
|
|
|
|
/// The state.
|
|
|
|
/// \a empty when empty.
|
|
|
|
state_type state;
|
|
|
|
};
|
|
|
|
|
|
|
|
/// "Internal" symbol: element of the stack.
|
|
|
|
struct stack_symbol_type : basic_symbol<by_state>
|
|
|
|
{
|
|
|
|
/// Superclass.
|
|
|
|
typedef basic_symbol<by_state> super_type;
|
|
|
|
/// Construct an empty symbol.
|
|
|
|
stack_symbol_type ();
|
|
|
|
/// Move or copy construction.
|
|
|
|
stack_symbol_type (YY_RVREF (stack_symbol_type) that);
|
|
|
|
/// Steal the contents from \a sym to build this.
|
|
|
|
stack_symbol_type (state_type s, YY_MOVE_REF (symbol_type) sym);
|
|
|
|
#if YY_CPLUSPLUS < 201103L
|
|
|
|
/// Assignment, needed by push_back by some old implementations.
|
|
|
|
/// Moves the contents of that.
|
|
|
|
stack_symbol_type& operator= (stack_symbol_type& that);
|
|
|
|
|
|
|
|
/// Assignment, needed by push_back by other implementations.
|
|
|
|
/// Needed by some other old implementations.
|
|
|
|
stack_symbol_type& operator= (const stack_symbol_type& that);
|
|
|
|
#endif
|
|
|
|
};
|
|
|
|
|
|
|
|
/// A stack with random access from its top.
|
|
|
|
template <typename T, typename S = std::vector<T> >
|
|
|
|
class stack
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// Hide our reversed order.
|
|
|
|
typedef typename S::iterator iterator;
|
|
|
|
typedef typename S::const_iterator const_iterator;
|
|
|
|
typedef typename S::size_type size_type;
|
|
|
|
typedef typename std::ptrdiff_t index_type;
|
|
|
|
|
2022-04-12 13:13:10 -04:00
|
|
|
stack (size_type n = 200) YY_NOEXCEPT
|
2022-02-18 13:07:37 -05:00
|
|
|
: seq_ (n)
|
|
|
|
{}
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
/// Non copyable.
|
|
|
|
stack (const stack&) = delete;
|
|
|
|
/// Non copyable.
|
|
|
|
stack& operator= (const stack&) = delete;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/// Random access.
|
|
|
|
///
|
|
|
|
/// Index 0 returns the topmost element.
|
|
|
|
const T&
|
|
|
|
operator[] (index_type i) const
|
|
|
|
{
|
|
|
|
return seq_[size_type (size () - 1 - i)];
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Random access.
|
|
|
|
///
|
|
|
|
/// Index 0 returns the topmost element.
|
|
|
|
T&
|
|
|
|
operator[] (index_type i)
|
|
|
|
{
|
|
|
|
return seq_[size_type (size () - 1 - i)];
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Steal the contents of \a t.
|
|
|
|
///
|
|
|
|
/// Close to move-semantics.
|
|
|
|
void
|
|
|
|
push (YY_MOVE_REF (T) t)
|
|
|
|
{
|
|
|
|
seq_.push_back (T ());
|
|
|
|
operator[] (0).move (t);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Pop elements from the stack.
|
|
|
|
void
|
|
|
|
pop (std::ptrdiff_t n = 1) YY_NOEXCEPT
|
|
|
|
{
|
|
|
|
for (; 0 < n; --n)
|
|
|
|
seq_.pop_back ();
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Pop all elements from the stack.
|
|
|
|
void
|
|
|
|
clear () YY_NOEXCEPT
|
|
|
|
{
|
|
|
|
seq_.clear ();
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Number of elements on the stack.
|
|
|
|
index_type
|
|
|
|
size () const YY_NOEXCEPT
|
|
|
|
{
|
|
|
|
return index_type (seq_.size ());
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Iterator on top of the stack (going downwards).
|
|
|
|
const_iterator
|
|
|
|
begin () const YY_NOEXCEPT
|
|
|
|
{
|
|
|
|
return seq_.begin ();
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Bottom of the stack.
|
|
|
|
const_iterator
|
|
|
|
end () const YY_NOEXCEPT
|
|
|
|
{
|
|
|
|
return seq_.end ();
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Present a slice of the top of a stack.
|
|
|
|
class slice
|
|
|
|
{
|
|
|
|
public:
|
2022-04-12 13:13:10 -04:00
|
|
|
slice (const stack& stack, index_type range) YY_NOEXCEPT
|
2022-02-18 13:07:37 -05:00
|
|
|
: stack_ (stack)
|
|
|
|
, range_ (range)
|
|
|
|
{}
|
|
|
|
|
|
|
|
const T&
|
|
|
|
operator[] (index_type i) const
|
|
|
|
{
|
|
|
|
return stack_[range_ - i];
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
const stack& stack_;
|
|
|
|
index_type range_;
|
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
|
|
|
#if YY_CPLUSPLUS < 201103L
|
|
|
|
/// Non copyable.
|
|
|
|
stack (const stack&);
|
|
|
|
/// Non copyable.
|
|
|
|
stack& operator= (const stack&);
|
|
|
|
#endif
|
|
|
|
/// The wrapped container.
|
|
|
|
S seq_;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/// Stack type.
|
|
|
|
typedef stack<stack_symbol_type> stack_type;
|
|
|
|
|
|
|
|
/// The stack.
|
|
|
|
stack_type yystack_;
|
|
|
|
/// The stack for LAC.
|
|
|
|
/// Logically, the yy_lac_stack's lifetime is confined to the function
|
|
|
|
/// yy_lac_check_. We just store it as a member of this class to hold
|
|
|
|
/// on to the memory and to avoid frequent reallocations.
|
|
|
|
/// Since yy_lac_check_ is const, this member must be mutable.
|
|
|
|
mutable std::vector<state_type> yylac_stack_;
|
|
|
|
/// Whether an initial LAC context was established.
|
|
|
|
bool yy_lac_established_;
|
|
|
|
|
|
|
|
|
|
|
|
/// Push a new state on the stack.
|
|
|
|
/// \param m a debug message to display
|
|
|
|
/// if null, no trace is output.
|
|
|
|
/// \param sym the symbol
|
|
|
|
/// \warning the contents of \a s.value is stolen.
|
|
|
|
void yypush_ (const char* m, YY_MOVE_REF (stack_symbol_type) sym);
|
|
|
|
|
|
|
|
/// Push a new look ahead token on the state on the stack.
|
|
|
|
/// \param m a debug message to display
|
|
|
|
/// if null, no trace is output.
|
|
|
|
/// \param s the state
|
|
|
|
/// \param sym the symbol (for its value and location).
|
|
|
|
/// \warning the contents of \a sym.value is stolen.
|
|
|
|
void yypush_ (const char* m, state_type s, YY_MOVE_REF (symbol_type) sym);
|
|
|
|
|
|
|
|
/// Pop \a n symbols from the stack.
|
2022-04-12 13:13:10 -04:00
|
|
|
void yypop_ (int n = 1) YY_NOEXCEPT;
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
/// Constants.
|
|
|
|
enum
|
|
|
|
{
|
2023-09-24 08:36:27 -04:00
|
|
|
yylast_ = 3327, ///< Last index in yytable_.
|
2022-11-10 13:32:57 -05:00
|
|
|
yynnts_ = 101, ///< Number of nonterminal symbols.
|
2023-05-13 13:24:57 -04:00
|
|
|
yyfinal_ = 28 ///< Termination state number.
|
2022-02-18 13:07:37 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// User arguments.
|
2023-05-13 13:24:57 -04:00
|
|
|
xsk::arc::context const* ctx_;
|
|
|
|
xsk::arc::preprocessor& ppr;
|
|
|
|
xsk::arc::program::ptr& ast;
|
|
|
|
std::uint32_t index;
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
inline
|
|
|
|
parser::symbol_kind_type
|
2022-04-12 13:13:10 -04:00
|
|
|
parser::yytranslate_ (int t) YY_NOEXCEPT
|
2022-02-18 13:07:37 -05:00
|
|
|
{
|
|
|
|
return static_cast<symbol_kind_type> (t);
|
|
|
|
}
|
|
|
|
|
|
|
|
// basic_symbol.
|
|
|
|
template <typename Base>
|
|
|
|
parser::basic_symbol<Base>::basic_symbol (const basic_symbol& that)
|
|
|
|
: Base (that)
|
|
|
|
, value ()
|
|
|
|
, location (that.location)
|
|
|
|
{
|
|
|
|
switch (this->kind ())
|
|
|
|
{
|
|
|
|
case symbol_kind::S_expr_function: // expr_function
|
|
|
|
case symbol_kind::S_expr_pointer: // expr_pointer
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< call::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_declaration: // declaration
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< decl::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2023-05-13 13:24:57 -04:00
|
|
|
case symbol_kind::S_decl_function: // decl_function
|
|
|
|
value.copy< decl_function::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_decl_usingtree: // decl_usingtree
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< decl_usingtree::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr: // expr
|
|
|
|
case symbol_kind::S_expr_or_empty: // expr_or_empty
|
|
|
|
case symbol_kind::S_expr_increment: // expr_increment
|
|
|
|
case symbol_kind::S_expr_decrement: // expr_decrement
|
2023-05-13 13:24:57 -04:00
|
|
|
case symbol_kind::S_expr_assign: // expr_assign
|
2022-02-18 13:07:37 -05:00
|
|
|
case symbol_kind::S_expr_ternary: // expr_ternary
|
|
|
|
case symbol_kind::S_expr_binary: // expr_binary
|
|
|
|
case symbol_kind::S_expr_primitive: // expr_primitive
|
2022-10-15 08:49:29 -04:00
|
|
|
case symbol_kind::S_expr_parameters_default: // expr_parameters_default
|
2022-02-18 13:07:37 -05:00
|
|
|
case symbol_kind::S_expr_object: // expr_object
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_abs: // expr_abs
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_abs::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_angleclamp180: // expr_angleclamp180
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_angleclamp180::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_anglestoforward: // expr_anglestoforward
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_anglestoforward::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_anglestoright: // expr_anglestoright
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_anglestoright::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_anglestoup: // expr_anglestoup
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_anglestoup::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_anim: // expr_anim
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_anim::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_animation: // expr_animation
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_animation::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2022-10-14 12:47:38 -04:00
|
|
|
case symbol_kind::S_expr_animtree: // expr_animtree
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_animtree::ptr > (YY_MOVE (that.value));
|
2022-10-14 12:47:38 -04:00
|
|
|
break;
|
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
case symbol_kind::S_expr_arguments: // expr_arguments
|
|
|
|
case symbol_kind::S_expr_arguments_no_empty: // expr_arguments_no_empty
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_arguments::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_array: // expr_array
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_array::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_call: // expr_call
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_call::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_complement: // expr_complement
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_complement::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_empty_array: // expr_empty_array
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_empty_array::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_false: // expr_false
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_false::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_field: // expr_field
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_field::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_float: // expr_float
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_float::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_game: // expr_game
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_game::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvar: // expr_getdvar
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_getdvar::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarcoloralpha: // expr_getdvarcoloralpha
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_getdvarcoloralpha::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarcolorblue: // expr_getdvarcolorblue
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_getdvarcolorblue::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarcolorgreen: // expr_getdvarcolorgreen
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_getdvarcolorgreen::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarcolorred: // expr_getdvarcolorred
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_getdvarcolorred::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarfloat: // expr_getdvarfloat
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_getdvarfloat::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarint: // expr_getdvarint
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_getdvarint::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarvector: // expr_getdvarvector
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_getdvarvector::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getfirstarraykey: // expr_getfirstarraykey
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_getfirstarraykey::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getnextarraykey: // expr_getnextarraykey
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_getnextarraykey::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_gettime: // expr_gettime
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_gettime::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_hash: // expr_hash
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_hash::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2022-02-20 06:10:21 -05:00
|
|
|
case symbol_kind::S_expr_identifier_nosize: // expr_identifier_nosize
|
2022-02-18 13:07:37 -05:00
|
|
|
case symbol_kind::S_expr_identifier: // expr_identifier
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_identifier::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_integer: // expr_integer
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_integer::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_isdefined: // expr_isdefined
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_isdefined::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_istring: // expr_istring
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_istring::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_level: // expr_level
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_level::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_method: // expr_method
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_method::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2022-06-15 11:06:58 -04:00
|
|
|
case symbol_kind::S_expr_negate: // expr_negate
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_negate::ptr > (YY_MOVE (that.value));
|
2022-06-15 11:06:58 -04:00
|
|
|
break;
|
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
case symbol_kind::S_expr_not: // expr_not
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_not::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_parameters: // expr_parameters
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_parameters::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_paren: // expr_paren
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_paren::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_path: // expr_path
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_path::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_reference: // expr_reference
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_reference::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_self: // expr_self
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_self::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_size: // expr_size
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_size::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_string: // expr_string
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_string::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_true: // expr_true
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_true::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_undefined: // expr_undefined
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_undefined::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_vector: // expr_vector
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_vector::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_vectorscale: // expr_vectorscale
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_vectorscale::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_vectortoangles: // expr_vectortoangles
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< expr_vectortoangles::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_include: // include
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< include::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_program: // program
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< program::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2023-05-13 13:24:57 -04:00
|
|
|
case symbol_kind::S_PATH: // "path"
|
|
|
|
case symbol_kind::S_IDENTIFIER: // "identifier"
|
|
|
|
case symbol_kind::S_STRING: // "string literal"
|
|
|
|
case symbol_kind::S_ISTRING: // "localized string"
|
|
|
|
case symbol_kind::S_HASHSTR: // "hash string"
|
|
|
|
case symbol_kind::S_FLOAT: // "float"
|
|
|
|
case symbol_kind::S_INTEGER: // "integer"
|
|
|
|
value.copy< std::string > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2023-05-13 13:24:57 -04:00
|
|
|
case symbol_kind::S_stmt: // stmt
|
|
|
|
case symbol_kind::S_stmt_or_dev: // stmt_or_dev
|
|
|
|
value.copy< stmt::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_break: // stmt_break
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< stmt_break::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_case: // stmt_case
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< stmt_case::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2023-05-13 13:24:57 -04:00
|
|
|
case symbol_kind::S_stmt_comp: // stmt_comp
|
|
|
|
value.copy< stmt_comp::ptr > (YY_MOVE (that.value));
|
2022-10-20 11:19:34 -04:00
|
|
|
break;
|
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
case symbol_kind::S_stmt_continue: // stmt_continue
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< stmt_continue::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_default: // stmt_default
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< stmt_default::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_dev: // stmt_dev
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< stmt_dev::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_dowhile: // stmt_dowhile
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< stmt_dowhile::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_endon: // stmt_endon
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< stmt_endon::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_expr: // stmt_expr
|
2023-05-13 13:24:57 -04:00
|
|
|
case symbol_kind::S_stmt_call: // stmt_call
|
|
|
|
case symbol_kind::S_stmt_const: // stmt_const
|
|
|
|
case symbol_kind::S_stmt_assign: // stmt_assign
|
|
|
|
value.copy< stmt_expr::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_for: // stmt_for
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< stmt_for::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_foreach: // stmt_foreach
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< stmt_foreach::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_if: // stmt_if
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< stmt_if::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_ifelse: // stmt_ifelse
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< stmt_ifelse::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_list: // stmt_list
|
|
|
|
case symbol_kind::S_stmt_or_dev_list: // stmt_or_dev_list
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< stmt_list::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_notify: // stmt_notify
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< stmt_notify::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_prof_begin: // stmt_prof_begin
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< stmt_prof_begin::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_prof_end: // stmt_prof_end
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< stmt_prof_end::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_return: // stmt_return
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< stmt_return::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_switch: // stmt_switch
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< stmt_switch::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_wait: // stmt_wait
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< stmt_wait::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_waittill: // stmt_waittill
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< stmt_waittill::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_waittillframeend: // stmt_waittillframeend
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< stmt_waittillframeend::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_waittillmatch: // stmt_waittillmatch
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< stmt_waittillmatch::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_while: // stmt_while
|
2023-05-13 13:24:57 -04:00
|
|
|
value.copy< stmt_while::ptr > (YY_MOVE (that.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-12 13:13:10 -04:00
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
template <typename Base>
|
|
|
|
parser::symbol_kind_type
|
|
|
|
parser::basic_symbol<Base>::type_get () const YY_NOEXCEPT
|
|
|
|
{
|
|
|
|
return this->kind ();
|
|
|
|
}
|
|
|
|
|
2022-04-12 13:13:10 -04:00
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
template <typename Base>
|
|
|
|
bool
|
|
|
|
parser::basic_symbol<Base>::empty () const YY_NOEXCEPT
|
|
|
|
{
|
|
|
|
return this->kind () == symbol_kind::S_YYEMPTY;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <typename Base>
|
|
|
|
void
|
|
|
|
parser::basic_symbol<Base>::move (basic_symbol& s)
|
|
|
|
{
|
|
|
|
super_type::move (s);
|
|
|
|
switch (this->kind ())
|
|
|
|
{
|
|
|
|
case symbol_kind::S_expr_function: // expr_function
|
|
|
|
case symbol_kind::S_expr_pointer: // expr_pointer
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< call::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_declaration: // declaration
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< decl::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2023-05-13 13:24:57 -04:00
|
|
|
case symbol_kind::S_decl_function: // decl_function
|
|
|
|
value.move< decl_function::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_decl_usingtree: // decl_usingtree
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< decl_usingtree::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr: // expr
|
|
|
|
case symbol_kind::S_expr_or_empty: // expr_or_empty
|
|
|
|
case symbol_kind::S_expr_increment: // expr_increment
|
|
|
|
case symbol_kind::S_expr_decrement: // expr_decrement
|
2023-05-13 13:24:57 -04:00
|
|
|
case symbol_kind::S_expr_assign: // expr_assign
|
2022-02-18 13:07:37 -05:00
|
|
|
case symbol_kind::S_expr_ternary: // expr_ternary
|
|
|
|
case symbol_kind::S_expr_binary: // expr_binary
|
|
|
|
case symbol_kind::S_expr_primitive: // expr_primitive
|
2022-10-15 08:49:29 -04:00
|
|
|
case symbol_kind::S_expr_parameters_default: // expr_parameters_default
|
2022-02-18 13:07:37 -05:00
|
|
|
case symbol_kind::S_expr_object: // expr_object
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_abs: // expr_abs
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_abs::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_angleclamp180: // expr_angleclamp180
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_angleclamp180::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_anglestoforward: // expr_anglestoforward
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_anglestoforward::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_anglestoright: // expr_anglestoright
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_anglestoright::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_anglestoup: // expr_anglestoup
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_anglestoup::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_anim: // expr_anim
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_anim::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_animation: // expr_animation
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_animation::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2022-10-14 12:47:38 -04:00
|
|
|
case symbol_kind::S_expr_animtree: // expr_animtree
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_animtree::ptr > (YY_MOVE (s.value));
|
2022-10-14 12:47:38 -04:00
|
|
|
break;
|
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
case symbol_kind::S_expr_arguments: // expr_arguments
|
|
|
|
case symbol_kind::S_expr_arguments_no_empty: // expr_arguments_no_empty
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_arguments::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_array: // expr_array
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_array::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_call: // expr_call
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_call::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_complement: // expr_complement
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_complement::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_empty_array: // expr_empty_array
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_empty_array::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_false: // expr_false
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_false::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_field: // expr_field
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_field::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_float: // expr_float
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_float::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_game: // expr_game
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_game::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvar: // expr_getdvar
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_getdvar::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarcoloralpha: // expr_getdvarcoloralpha
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_getdvarcoloralpha::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarcolorblue: // expr_getdvarcolorblue
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_getdvarcolorblue::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarcolorgreen: // expr_getdvarcolorgreen
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_getdvarcolorgreen::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarcolorred: // expr_getdvarcolorred
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_getdvarcolorred::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarfloat: // expr_getdvarfloat
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_getdvarfloat::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarint: // expr_getdvarint
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_getdvarint::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getdvarvector: // expr_getdvarvector
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_getdvarvector::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getfirstarraykey: // expr_getfirstarraykey
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_getfirstarraykey::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_getnextarraykey: // expr_getnextarraykey
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_getnextarraykey::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_gettime: // expr_gettime
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_gettime::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_hash: // expr_hash
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_hash::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2022-02-20 06:10:21 -05:00
|
|
|
case symbol_kind::S_expr_identifier_nosize: // expr_identifier_nosize
|
2022-02-18 13:07:37 -05:00
|
|
|
case symbol_kind::S_expr_identifier: // expr_identifier
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_identifier::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_integer: // expr_integer
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_integer::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_isdefined: // expr_isdefined
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_isdefined::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_istring: // expr_istring
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_istring::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_level: // expr_level
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_level::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_method: // expr_method
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_method::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2022-06-15 11:06:58 -04:00
|
|
|
case symbol_kind::S_expr_negate: // expr_negate
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_negate::ptr > (YY_MOVE (s.value));
|
2022-06-15 11:06:58 -04:00
|
|
|
break;
|
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
case symbol_kind::S_expr_not: // expr_not
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_not::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_parameters: // expr_parameters
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_parameters::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_paren: // expr_paren
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_paren::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_path: // expr_path
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_path::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_reference: // expr_reference
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_reference::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_self: // expr_self
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_self::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_size: // expr_size
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_size::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_string: // expr_string
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_string::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_true: // expr_true
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_true::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_undefined: // expr_undefined
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_undefined::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_vector: // expr_vector
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_vector::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_vectorscale: // expr_vectorscale
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_vectorscale::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_expr_vectortoangles: // expr_vectortoangles
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< expr_vectortoangles::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_include: // include
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< include::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_program: // program
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< program::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2023-05-13 13:24:57 -04:00
|
|
|
case symbol_kind::S_PATH: // "path"
|
|
|
|
case symbol_kind::S_IDENTIFIER: // "identifier"
|
|
|
|
case symbol_kind::S_STRING: // "string literal"
|
|
|
|
case symbol_kind::S_ISTRING: // "localized string"
|
|
|
|
case symbol_kind::S_HASHSTR: // "hash string"
|
|
|
|
case symbol_kind::S_FLOAT: // "float"
|
|
|
|
case symbol_kind::S_INTEGER: // "integer"
|
|
|
|
value.move< std::string > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2023-05-13 13:24:57 -04:00
|
|
|
case symbol_kind::S_stmt: // stmt
|
|
|
|
case symbol_kind::S_stmt_or_dev: // stmt_or_dev
|
|
|
|
value.move< stmt::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_break: // stmt_break
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_break::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_case: // stmt_case
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_case::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
2023-05-13 13:24:57 -04:00
|
|
|
case symbol_kind::S_stmt_comp: // stmt_comp
|
|
|
|
value.move< stmt_comp::ptr > (YY_MOVE (s.value));
|
2022-10-20 11:19:34 -04:00
|
|
|
break;
|
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
case symbol_kind::S_stmt_continue: // stmt_continue
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_continue::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_default: // stmt_default
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_default::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_dev: // stmt_dev
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_dev::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_dowhile: // stmt_dowhile
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_dowhile::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_endon: // stmt_endon
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_endon::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_expr: // stmt_expr
|
2023-05-13 13:24:57 -04:00
|
|
|
case symbol_kind::S_stmt_call: // stmt_call
|
|
|
|
case symbol_kind::S_stmt_const: // stmt_const
|
|
|
|
case symbol_kind::S_stmt_assign: // stmt_assign
|
|
|
|
value.move< stmt_expr::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_for: // stmt_for
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_for::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_foreach: // stmt_foreach
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_foreach::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_if: // stmt_if
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_if::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_ifelse: // stmt_ifelse
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_ifelse::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_list: // stmt_list
|
|
|
|
case symbol_kind::S_stmt_or_dev_list: // stmt_or_dev_list
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_list::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_notify: // stmt_notify
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_notify::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_prof_begin: // stmt_prof_begin
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_prof_begin::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_prof_end: // stmt_prof_end
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_prof_end::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_return: // stmt_return
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_return::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_switch: // stmt_switch
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_switch::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_wait: // stmt_wait
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_wait::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_waittill: // stmt_waittill
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_waittill::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_waittillframeend: // stmt_waittillframeend
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_waittillframeend::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_waittillmatch: // stmt_waittillmatch
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_waittillmatch::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
case symbol_kind::S_stmt_while: // stmt_while
|
2023-05-13 13:24:57 -04:00
|
|
|
value.move< stmt_while::ptr > (YY_MOVE (s.value));
|
2022-02-18 13:07:37 -05:00
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
location = YY_MOVE (s.location);
|
|
|
|
}
|
|
|
|
|
|
|
|
// by_kind.
|
|
|
|
inline
|
2022-04-12 13:13:10 -04:00
|
|
|
parser::by_kind::by_kind () YY_NOEXCEPT
|
2022-02-18 13:07:37 -05:00
|
|
|
: kind_ (symbol_kind::S_YYEMPTY)
|
|
|
|
{}
|
|
|
|
|
|
|
|
#if 201103L <= YY_CPLUSPLUS
|
|
|
|
inline
|
2022-04-12 13:13:10 -04:00
|
|
|
parser::by_kind::by_kind (by_kind&& that) YY_NOEXCEPT
|
2022-02-18 13:07:37 -05:00
|
|
|
: kind_ (that.kind_)
|
|
|
|
{
|
|
|
|
that.clear ();
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
inline
|
2022-04-12 13:13:10 -04:00
|
|
|
parser::by_kind::by_kind (const by_kind& that) YY_NOEXCEPT
|
2022-02-18 13:07:37 -05:00
|
|
|
: kind_ (that.kind_)
|
|
|
|
{}
|
|
|
|
|
|
|
|
inline
|
2022-04-12 13:13:10 -04:00
|
|
|
parser::by_kind::by_kind (token_kind_type t) YY_NOEXCEPT
|
2022-02-18 13:07:37 -05:00
|
|
|
: kind_ (yytranslate_ (t))
|
|
|
|
{}
|
|
|
|
|
2022-04-12 13:13:10 -04:00
|
|
|
|
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
inline
|
|
|
|
void
|
|
|
|
parser::by_kind::clear () YY_NOEXCEPT
|
|
|
|
{
|
|
|
|
kind_ = symbol_kind::S_YYEMPTY;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline
|
|
|
|
void
|
|
|
|
parser::by_kind::move (by_kind& that)
|
|
|
|
{
|
|
|
|
kind_ = that.kind_;
|
|
|
|
that.clear ();
|
|
|
|
}
|
|
|
|
|
|
|
|
inline
|
|
|
|
parser::symbol_kind_type
|
|
|
|
parser::by_kind::kind () const YY_NOEXCEPT
|
|
|
|
{
|
|
|
|
return kind_;
|
|
|
|
}
|
|
|
|
|
2022-04-12 13:13:10 -04:00
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
inline
|
|
|
|
parser::symbol_kind_type
|
|
|
|
parser::by_kind::type_get () const YY_NOEXCEPT
|
|
|
|
{
|
|
|
|
return this->kind ();
|
|
|
|
}
|
|
|
|
|
2022-04-12 13:13:10 -04:00
|
|
|
|
2022-02-18 13:07:37 -05:00
|
|
|
#line 13 "parser.ypp"
|
2023-05-13 13:24:57 -04:00
|
|
|
} } // xsk::arc
|
|
|
|
#line 6273 "parser.hpp"
|
2022-02-18 13:07:37 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-05-13 13:24:57 -04:00
|
|
|
#endif // !YY_ARC_PARSER_HPP_INCLUDED
|