ztsdb
Public Types | Public Member Functions | Public Attributes | List of all members
yy::parser::basic_symbol< Base > Struct Template Reference

#include <parser.hpp>

Inheritance diagram for yy::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)
 Constructor for valueless symbols, and symbols from each type.
 
 basic_symbol (typename Base::kind_type t, const E *&v, const location_type &l)
 
 basic_symbol (typename Base::kind_type t, const El *&v, const location_type &l)
 
 basic_symbol (typename Base::kind_type t, const Global::dtime &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 string &v, const location_type &l)
 
 basic_symbol (typename Base::kind_type t, const tz::interval &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.
 
bool empty () const YY_NOEXCEPT
 Whether empty.
 
void move (basic_symbol &s)
 Destructive move, s is emptied into this.
 

Public Attributes

semantic_type value
 The semantic value.
 
location_type location
 The location.
 

Detailed Description

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

A complete symbol.

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

Provide access to semantic value and location.


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