Kea 2.7.5
|
A complete symbol. More...
#include <parser.h>
Public Types | |
typedef Base | super_type |
Alias to Base. | |
Public Member Functions | |
basic_symbol () YY_NOEXCEPT | |
Default constructor. | |
basic_symbol (const basic_symbol &that) | |
Copy constructor. | |
basic_symbol (typename Base::kind_type t, const int8_t &v, const location_type &l) | |
basic_symbol (typename Base::kind_type t, const location_type &l) | |
Constructors for typed symbols. | |
basic_symbol (typename Base::kind_type t, const std::string &v, const location_type &l) | |
basic_symbol (typename Base::kind_type t, const TokenOption::RepresentationType &v, const location_type &l) | |
basic_symbol (typename Base::kind_type t, const TokenPkt4::FieldType &v, const location_type &l) | |
basic_symbol (typename Base::kind_type t, const TokenPkt6::FieldType &v, const location_type &l) | |
basic_symbol (typename Base::kind_type t, const TokenPkt::MetadataType &v, const location_type &l) | |
basic_symbol (typename Base::kind_type t, const TokenRelay6Field::FieldType &v, const location_type &l) | |
basic_symbol (typename Base::kind_type t, const uint16_t &v, const location_type &l) | |
basic_symbol (typename Base::kind_type t, const uint32_t &v, const location_type &l) | |
~basic_symbol () | |
Destroy the symbol. | |
void | clear () YY_NOEXCEPT |
Destroy contents, and record that is empty. | |
bool | empty () const YY_NOEXCEPT |
Whether empty. | |
void | move (basic_symbol &s) |
Destructive move, s is emptied into this. | |
std::string | name () const YY_NOEXCEPT |
The user-facing name of this symbol. | |
symbol_kind_type | type_get () const YY_NOEXCEPT |
Backward compatibility (Bison 3.6). | |
Public Attributes | |
location_type | location |
The location. | |
value_type | value |
The semantic value. | |
A complete symbol.
Expects its Base type to provide access to the symbol kind via kind ().
Provide access to semantic value and location.
typedef Base isc::eval::EvalParser::basic_symbol< Base >::super_type |
|
inline |
isc::eval::EvalParser::basic_symbol< Base >::basic_symbol | ( | const basic_symbol< Base > & | that | ) |
Copy constructor.
Definition at line 2590 of file parser.h.
References isc::eval::EvalParser::value_type::copy(), isc::eval::EvalParser::symbol_kind::S_enterprise_id, isc::eval::EvalParser::symbol_kind::S_HEXSTRING, isc::eval::EvalParser::symbol_kind::S_INTEGER, isc::eval::EvalParser::symbol_kind::S_integer_expr, isc::eval::EvalParser::symbol_kind::S_IP_ADDRESS, isc::eval::EvalParser::symbol_kind::S_nest_level, isc::eval::EvalParser::symbol_kind::S_option_code, isc::eval::EvalParser::symbol_kind::S_OPTION_NAME, isc::eval::EvalParser::symbol_kind::S_option_repr_type, isc::eval::EvalParser::symbol_kind::S_pkt4_field, isc::eval::EvalParser::symbol_kind::S_pkt6_field, isc::eval::EvalParser::symbol_kind::S_pkt_metadata, isc::eval::EvalParser::symbol_kind::S_relay6_field, isc::eval::EvalParser::symbol_kind::S_STRING, isc::eval::EvalParser::symbol_kind::S_sub_option_code, isc::eval::EvalParser::basic_symbol< Base >::value, and YY_MOVE.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool isc::eval::EvalParser::basic_symbol< Base >::empty | ( | ) | const |
Whether empty.
Definition at line 2658 of file parser.h.
References isc::eval::EvalParser::symbol_kind::S_YYEMPTY.
void isc::eval::EvalParser::basic_symbol< Base >::move | ( | basic_symbol< Base > & | s | ) |
Destructive move, s is emptied into this.
Definition at line 2665 of file parser.h.
References isc::eval::EvalParser::basic_symbol< Base >::location, isc::eval::EvalParser::symbol_kind::S_enterprise_id, isc::eval::EvalParser::symbol_kind::S_HEXSTRING, isc::eval::EvalParser::symbol_kind::S_INTEGER, isc::eval::EvalParser::symbol_kind::S_integer_expr, isc::eval::EvalParser::symbol_kind::S_IP_ADDRESS, isc::eval::EvalParser::symbol_kind::S_nest_level, isc::eval::EvalParser::symbol_kind::S_option_code, isc::eval::EvalParser::symbol_kind::S_OPTION_NAME, isc::eval::EvalParser::symbol_kind::S_option_repr_type, isc::eval::EvalParser::symbol_kind::S_pkt4_field, isc::eval::EvalParser::symbol_kind::S_pkt6_field, isc::eval::EvalParser::symbol_kind::S_pkt_metadata, isc::eval::EvalParser::symbol_kind::S_relay6_field, isc::eval::EvalParser::symbol_kind::S_STRING, isc::eval::EvalParser::symbol_kind::S_sub_option_code, isc::eval::EvalParser::basic_symbol< Base >::value, and YY_MOVE.
|
inline |
The user-facing name of this symbol.
Definition at line 989 of file parser.h.
References isc::eval::EvalParser::symbol_name().
EvalParser::symbol_kind_type isc::eval::EvalParser::basic_symbol< Base >::type_get | ( | ) | const |
location_type isc::eval::EvalParser::basic_symbol< Base >::location |
The location.
Definition at line 1007 of file parser.h.
Referenced by isc::eval::EvalParser::basic_symbol< Base >::move().
value_type isc::eval::EvalParser::basic_symbol< Base >::value |
The semantic value.
Definition at line 1004 of file parser.h.
Referenced by isc::eval::EvalParser::basic_symbol< Base >::basic_symbol(), and isc::eval::EvalParser::basic_symbol< Base >::move().