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