spot 2.14.5
Loading...
Searching...
No Matches
tlyy::parser::symbol_type Struct Reference

"External" symbols: returned by the scanner. More...

#include <spot/parsetl/parsetl.hh>

Inheritance diagram for tlyy::parser::symbol_type:
Collaboration diagram for tlyy::parser::symbol_type:

Public Types

typedef basic_symbol< by_kindsuper_type
 Superclass.
typedef token_kind_type kind_type
 The symbol kind as needed by the constructor.

Public Member Functions

 symbol_type ()
 Empty symbol.
 symbol_type (int tok, const location_type &l)
 Constructor for valueless symbols, and symbols from each type.
 symbol_type (int tok, const std::string &v, const location_type &l)
 symbol_type (int tok, const unsigned &v, const location_type &l)
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.
void move (by_kind &that)
 Steal the symbol kind from that.
symbol_kind_type kind () const

Public Attributes

value_type value
 The semantic value.
location_type location
 The location.
symbol_kind_type kind_

Detailed Description

"External" symbols: returned by the scanner.

Member Typedef Documentation

◆ kind_type

typedef token_kind_type tlyy::parser::by_kind::kind_type
inherited

The symbol kind as needed by the constructor.

◆ super_type

Constructor & Destructor Documentation

◆ symbol_type() [1/2]

tlyy::parser::symbol_type::symbol_type ( )
inline

Empty symbol.

Referenced by symbol_type().

◆ symbol_type() [2/2]

tlyy::parser::symbol_type::symbol_type ( int tok,
const location_type & l )
inline

Constructor for valueless symbols, and symbols from each type.

References symbol_type().

Member Function Documentation

◆ clear()

void tlyy::parser::basic_symbol< by_kind >::clear ( )
inlineinherited

Destroy contents, and record that is empty.

References basic_symbol(), tlyy::parser::by_kind::kind(), and value.

◆ empty()

bool tlyy::parser::basic_symbol< by_kind >::empty ( ) const
inherited

Whether empty.

References empty().

Referenced by empty().

◆ kind()

symbol_kind_type tlyy::parser::by_kind::kind ( ) const
inherited

The (internal) type number (corresponding to type). empty when empty.

References kind().

Referenced by tlyy::parser::basic_symbol< by_kind >::clear(), kind(), and tlyy::parser::basic_symbol< by_kind >::name().

◆ move() [1/2]

void tlyy::parser::basic_symbol< by_kind >::move ( basic_symbol< by_kind > & s)
inherited

Destructive move, s is emptied into this.

References basic_symbol(), and move().

Referenced by basic_symbol(), and move().

◆ move() [2/2]

void tlyy::parser::by_kind::move ( by_kind & that)
inherited

Steal the symbol kind from that.

References by_kind(), and move().

Referenced by move().

◆ name()

std::string tlyy::parser::basic_symbol< by_kind >::name ( ) const
inlineinherited

The user-facing name of this symbol.

References tlyy::parser::by_kind::kind(), and tlyy::parser::symbol_name().

◆ type_get()

symbol_kind_type tlyy::parser::basic_symbol< by_kind >::type_get ( ) const
inherited

Backward compatibility (Bison 3.6).

Member Data Documentation

◆ kind_

symbol_kind_type tlyy::parser::by_kind::kind_
inherited

The symbol kind. S_YYEMPTY when empty.

◆ location

The location.

Referenced by basic_symbol(), basic_symbol(), and basic_symbol().

◆ value

The semantic value.

Referenced by basic_symbol(), and clear().


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