spot 2.12.2
|
#include <spot/parsetl/parsetl.hh>
Public Types | |
typedef Base | super_type |
Alias to Base. More... | |
Public Member Functions | |
basic_symbol () | |
Default constructor. More... | |
basic_symbol (const basic_symbol &that) | |
Copy constructor. More... | |
basic_symbol (typename Base::kind_type t, const location_type &l) | |
Constructors for typed symbols. More... | |
basic_symbol (typename Base::kind_type t, const minmax_t &v, const location_type &l) | |
basic_symbol (typename Base::kind_type t, const pnode &v, const location_type &l) | |
basic_symbol (typename Base::kind_type t, const std::string &v, const location_type &l) | |
basic_symbol (typename Base::kind_type t, const unsigned &v, const location_type &l) | |
~basic_symbol () | |
Destroy the symbol. More... | |
void | clear () |
Destroy contents, and record that is empty. More... | |
std::string | name () const |
The user-facing name of this symbol. More... | |
symbol_kind_type | type_get () const |
Backward compatibility (Bison 3.6). More... | |
bool | empty () const |
Whether empty. More... | |
void | move (basic_symbol &s) |
Destructive move, s is emptied into this. More... | |
Public Attributes | |
value_type | value |
The semantic value. More... | |
location_type | location |
The location. More... | |
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 tlyy::parser::basic_symbol< Base >::super_type |
Alias to Base.
|
inline |
Default constructor.
tlyy::parser::basic_symbol< Base >::basic_symbol | ( | const basic_symbol< Base > & | that | ) |
Copy constructor.
|
inline |
Constructors for typed symbols.
|
inline |
Destroy the symbol.
References tlyy::parser::basic_symbol< Base >::clear().
|
inline |
Destroy contents, and record that is empty.
Referenced by tlyy::parser::basic_symbol< Base >::~basic_symbol().
bool tlyy::parser::basic_symbol< Base >::empty | ( | ) | const |
Whether empty.
void tlyy::parser::basic_symbol< Base >::move | ( | basic_symbol< Base > & | s | ) |
Destructive move, s is emptied into this.
|
inline |
The user-facing name of this symbol.
symbol_kind_type tlyy::parser::basic_symbol< Base >::type_get | ( | ) | const |
Backward compatibility (Bison 3.6).
location_type tlyy::parser::basic_symbol< Base >::location |
The location.
value_type tlyy::parser::basic_symbol< Base >::value |
The semantic value.