Vcsn
2.0
Be Rational
|
A complete symbol. More...
#include <parse.hh>
Public Types | |
typedef Base | super_type |
Alias to Base. More... | |
Public Member Functions | |
basic_symbol () | |
Default constructor. More... | |
basic_symbol (const basic_symbol &other) | |
Copy constructor. More... | |
basic_symbol (typename Base::kind_type t, const location_type &l) | |
Constructor for valueless symbols, and symbols from each type. More... | |
basic_symbol (typename Base::kind_type t, const braced_ratexp v, const location_type &l) | |
basic_symbol (typename Base::kind_type t, const irange_type v, const location_type &l) | |
basic_symbol (typename Base::kind_type t, const std::set< std::pair< std::string, std::string >> 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 semantic_type &v, const location_type &l) | |
Constructor for symbols with semantic value. More... | |
~basic_symbol () | |
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... | |
Private Member Functions | |
basic_symbol & | operator= (const basic_symbol &other) |
Assignment operator. More... | |
A complete symbol.
Expects its Base type to provide access to the symbol type via type_get().
Provide access to semantic value and location.
typedef Base vcsn::rat::parser::basic_symbol< Base >::super_type |
|
inline |
|
inline |
Copy constructor.
Definition at line 844 of file parse.hh.
References vcsn::rat::variant< S >::copy(), and vcsn::rat::parser::basic_symbol< Base >::value.
vcsn::rat::parser::basic_symbol< Base >::basic_symbol | ( | typename Base::kind_type | t, |
const location_type & | l | ||
) |
vcsn::rat::parser::basic_symbol< Base >::basic_symbol | ( | typename Base::kind_type | t, |
const braced_ratexp | v, | ||
const location_type & | l | ||
) |
vcsn::rat::parser::basic_symbol< Base >::basic_symbol | ( | typename Base::kind_type | t, |
const irange_type | v, | ||
const location_type & | l | ||
) |
vcsn::rat::parser::basic_symbol< Base >::basic_symbol | ( | typename Base::kind_type | t, |
const std::set< std::pair< std::string, std::string >> | v, | ||
const location_type & | l | ||
) |
vcsn::rat::parser::basic_symbol< Base >::basic_symbol | ( | typename Base::kind_type | t, |
const std::string | v, | ||
const location_type & | l | ||
) |
|
inline |
Constructor for symbols with semantic value.
Definition at line 879 of file parse.hh.
References vcsn::rat::variant< S >::copy(), and vcsn::rat::parser::basic_symbol< Base >::value.
|
inline |
|
inline |
Destructive move, s is emptied into this.
Definition at line 995 of file parse.hh.
References vcsn::rat::parser::basic_symbol< Base >::location, and vcsn::rat::parser::basic_symbol< Base >::value.
Referenced by vcsn::rat::parser::parse().
|
private |
Assignment operator.
location_type vcsn::rat::parser::basic_symbol< Base >::location |
The location.
Definition at line 418 of file parse.hh.
Referenced by vcsn::rat::parser::basic_symbol< Base >::move(), vcsn::rat::parser::stack_symbol_type::operator=(), vcsn::rat::parser::parse(), and vcsn::rat::parser::yy_print_().
semantic_type vcsn::rat::parser::basic_symbol< Base >::value |
The semantic value.
Definition at line 415 of file parse.hh.
Referenced by vcsn::rat::parser::basic_symbol< Base >::basic_symbol(), vcsn::rat::parser::basic_symbol< Base >::move(), vcsn::rat::parser::stack_symbol_type::operator=(), vcsn::rat::parser::parse(), vcsn::rat::parser::stack_symbol_type::stack_symbol_type(), and vcsn::rat::parser::yy_print_().