spot 2.14.5
Loading...
Searching...
No Matches
tlyy::parser::basic_symbol< Base > Struct Template Reference

#include <spot/parsetl/parsetl.hh>

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

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, const location_type &l)
 Constructors for typed symbols.
 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.
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.

Detailed Description

template<typename Base>
struct tlyy::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 tlyy::parser::basic_symbol< Base >::super_type

Alias to Base.

Constructor & Destructor Documentation

◆ basic_symbol() [1/3]

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

Default constructor.

◆ basic_symbol() [2/3]

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

Copy constructor.

◆ basic_symbol() [3/3]

template<typename Base>
tlyy::parser::basic_symbol< Base >::basic_symbol ( typename Base::kind_type t,
const location_type & l )
inline

Constructors for typed symbols.

◆ ~basic_symbol()

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

Destroy the symbol.

Member Function Documentation

◆ clear()

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

Destroy contents, and record that is empty.

Referenced by tlyy::parser::basic_symbol< by_kind >::~basic_symbol().

◆ empty()

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

Whether empty.

◆ move()

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

Destructive move, s is emptied into this.

◆ name()

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

The user-facing name of this symbol.

◆ type_get()

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

Backward compatibility (Bison 3.6).

Member Data Documentation

◆ location

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

The location.

◆ value

template<typename Base>
value_type tlyy::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 for spot by doxygen 1.15.0