Kea 2.5.5
isc::d2::D2Parser::symbol_type Struct Reference

"External" symbols: returned by the scanner. More...

#include <d2_parser.h>

+ Inheritance diagram for isc::d2::D2Parser::symbol_type:

Public Types

typedef basic_symbol< by_kindsuper_type
 Superclass. More...
 
- Public Types inherited from isc::d2::D2Parser::basic_symbol< Base >
typedef Base super_type
 Alias to Base. More...
 

Public Member Functions

 symbol_type () YY_NOEXCEPT
 Empty symbol. More...
 
 symbol_type (int tok, const bool &v, const location_type &l)
 
 symbol_type (int tok, const double &v, const location_type &l)
 
 symbol_type (int tok, const int64_t &v, const location_type &l)
 
 symbol_type (int tok, const location_type &l)
 Constructor for valueless symbols, and symbols from each type. More...
 
 symbol_type (int tok, const std::string &v, const location_type &l)
 
- Public Member Functions inherited from isc::d2::D2Parser::basic_symbol< Base >
 basic_symbol () YY_NOEXCEPT
 Default constructor. More...
 
 basic_symbol (const basic_symbol &that)
 Copy constructor. More...
 
 basic_symbol (typename Base::kind_type t, const bool &v, const location_type &l)
 
 basic_symbol (typename Base::kind_type t, const double &v, const location_type &l)
 
 basic_symbol (typename Base::kind_type t, const ElementPtr &v, const location_type &l)
 
 basic_symbol (typename Base::kind_type t, const int64_t &v, const location_type &l)
 
 basic_symbol (typename Base::kind_type t, const location_type &l)
 Constructors for typed symbols. More...
 
 basic_symbol (typename Base::kind_type t, const std::string &v, const location_type &l)
 
 ~basic_symbol ()
 Destroy the symbol. More...
 
void clear () YY_NOEXCEPT
 Destroy contents, and record that is empty. More...
 
bool empty () const YY_NOEXCEPT
 Whether empty. More...
 
void move (basic_symbol &s)
 Destructive move, s is emptied into this. More...
 
std::string name () const YY_NOEXCEPT
 The user-facing name of this symbol. More...
 
symbol_kind_type type_get () const YY_NOEXCEPT
 Backward compatibility (Bison 3.6). More...
 

Additional Inherited Members

- Public Attributes inherited from isc::d2::D2Parser::basic_symbol< Base >
location_type location
 The location. More...
 
value_type value
 The semantic value. More...
 

Detailed Description

"External" symbols: returned by the scanner.

Definition at line 1061 of file d2_parser.h.

Member Typedef Documentation

◆ super_type

Superclass.

Definition at line 1064 of file d2_parser.h.

Constructor & Destructor Documentation

◆ symbol_type() [1/6]

isc::d2::D2Parser::symbol_type::symbol_type ( )
inline

Empty symbol.

Definition at line 1067 of file d2_parser.h.

◆ symbol_type() [2/6]

isc::d2::D2Parser::symbol_type::symbol_type ( int  tok,
const location_type l 
)
inline

Constructor for valueless symbols, and symbols from each type.

Definition at line 1074 of file d2_parser.h.

References D2_PARSER__ASSERT, isc::d2::D2Parser::token::TOKEN_D2_PARSER_error, isc::d2::D2Parser::token::TOKEN_END, and isc::d2::D2Parser::token::TOKEN_SUB_HOOKS_LIBRARY.

◆ symbol_type() [3/6]

isc::d2::D2Parser::symbol_type::symbol_type ( int  tok,
const bool &  v,
const location_type l 
)
inline

Definition at line 1087 of file d2_parser.h.

References D2_PARSER__ASSERT, and isc::d2::D2Parser::token::TOKEN_BOOLEAN.

◆ symbol_type() [4/6]

isc::d2::D2Parser::symbol_type::symbol_type ( int  tok,
const double &  v,
const location_type l 
)
inline

Definition at line 1099 of file d2_parser.h.

References D2_PARSER__ASSERT, and isc::d2::D2Parser::token::TOKEN_FLOAT.

◆ symbol_type() [5/6]

isc::d2::D2Parser::symbol_type::symbol_type ( int  tok,
const int64_t &  v,
const location_type l 
)
inline

Definition at line 1111 of file d2_parser.h.

References D2_PARSER__ASSERT, and isc::d2::D2Parser::token::TOKEN_INTEGER.

◆ symbol_type() [6/6]

isc::d2::D2Parser::symbol_type::symbol_type ( int  tok,
const std::string &  v,
const location_type l 
)
inline

Definition at line 1123 of file d2_parser.h.

References D2_PARSER__ASSERT, and isc::d2::D2Parser::token::TOKEN_STRING.


The documentation for this struct was generated from the following file: