spot  2.11.6
Public Types | Public Member Functions | Public Attributes | List of all members
hoayy::parser::basic_symbol< Base > Struct Template Reference

#include <spot/parseaut/parseaut.hh>

Inheritance diagram for hoayy::parser::basic_symbol< Base >:
Collaboration diagram for hoayy::parser::basic_symbol< Base >:

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, location_type &l)
 Constructor for valueless symbols. More...
 
 basic_symbol (typename Base::kind_type t, const semantic_type &v, const location_type &l)
 Constructor for symbols with semantic value. More...
 
 ~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

semantic_type value
 The semantic value. More...
 
location_type location
 The location. More...
 

Detailed Description

template<typename Base>
struct hoayy::parser::basic_symbol< Base >

A complete symbol.

Expects its Base type to provide access to the symbol kind via kind ().

Provide access to semantic value and location.

Member Typedef Documentation

◆ super_type

template<typename Base >
typedef Base hoayy::parser::basic_symbol< Base >::super_type

Alias to Base.

Constructor & Destructor Documentation

◆ basic_symbol() [1/4]

template<typename Base >
hoayy::parser::basic_symbol< Base >::basic_symbol ( )
inline

Default constructor.

◆ basic_symbol() [2/4]

template<typename Base >
hoayy::parser::basic_symbol< Base >::basic_symbol ( const basic_symbol< Base > &  that)

Copy constructor.

◆ basic_symbol() [3/4]

template<typename Base >
hoayy::parser::basic_symbol< Base >::basic_symbol ( typename Base::kind_type  t,
location_type l 
)

Constructor for valueless symbols.

◆ basic_symbol() [4/4]

template<typename Base >
hoayy::parser::basic_symbol< Base >::basic_symbol ( typename Base::kind_type  t,
const semantic_type v,
const location_type l 
)

Constructor for symbols with semantic value.

◆ ~basic_symbol()

template<typename Base >
hoayy::parser::basic_symbol< Base >::~basic_symbol ( )
inline

Destroy the symbol.

Member Function Documentation

◆ clear()

template<typename Base >
void hoayy::parser::basic_symbol< Base >::clear ( )
inline

Destroy contents, and record that is empty.

◆ empty()

template<typename Base >
bool hoayy::parser::basic_symbol< Base >::empty ( ) const

Whether empty.

◆ move()

template<typename Base >
void hoayy::parser::basic_symbol< Base >::move ( basic_symbol< Base > &  s)

Destructive move, s is emptied into this.

◆ name()

template<typename Base >
std::string hoayy::parser::basic_symbol< Base >::name ( ) const
inline

The user-facing name of this symbol.

◆ type_get()

template<typename Base >
symbol_kind_type hoayy::parser::basic_symbol< Base >::type_get ( ) const

Backward compatibility (Bison 3.6).

Member Data Documentation

◆ location

template<typename Base >
location_type hoayy::parser::basic_symbol< Base >::location

The location.

◆ value

template<typename Base >
semantic_type hoayy::parser::basic_symbol< Base >::value

The semantic value.


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

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Fri Feb 27 2015 10:00:07 for spot by doxygen 1.9.1