|
spot 2.14.5
|
"External" symbols: returned by the scanner. More...
#include <spot/parsetl/parsetl.hh>
Public Types | |
| typedef basic_symbol< by_kind > | super_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_ |
"External" symbols: returned by the scanner.
|
inherited |
The symbol kind as needed by the constructor.
Superclass.
|
inline |
Empty symbol.
Referenced by symbol_type().
|
inline |
Constructor for valueless symbols, and symbols from each type.
References symbol_type().
|
inlineinherited |
Destroy contents, and record that is empty.
References basic_symbol(), tlyy::parser::by_kind::kind(), and value.
|
inherited |
|
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().
|
inherited |
Destructive move, s is emptied into this.
References basic_symbol(), and move().
Referenced by basic_symbol(), and move().
|
inherited |
|
inlineinherited |
The user-facing name of this symbol.
References tlyy::parser::by_kind::kind(), and tlyy::parser::symbol_name().
|
inherited |
Backward compatibility (Bison 3.6).
|
inherited |
The symbol kind. S_YYEMPTY when empty.
|
inherited |
The location.
Referenced by basic_symbol(), basic_symbol(), and basic_symbol().
|
inherited |
The semantic value.
Referenced by basic_symbol(), and clear().
1.15.0