ztsdb
Public Types | Public Member Functions | Public Attributes | List of all members
cfgyy::parser::by_type Struct Reference

Type access provider for token (enum) based symbols. More...

#include <cfgparser.hpp>

Inheritance diagram for cfgyy::parser::by_type:
cfgyy::parser::basic_symbol< by_type > cfgyy::parser::symbol_type

Public Types

typedef token_type kind_type
 The symbol type as needed by the constructor.
 

Public Member Functions

 by_type ()
 Default constructor.
 
 by_type (const by_type &that)
 Copy constructor.
 
 by_type (kind_type t)
 Constructor from (external) token numbers.
 
void clear ()
 Record that this symbol is empty.
 
void move (by_type &that)
 Steal the symbol type from that.
 
symbol_number_type type_get () const YY_NOEXCEPT
 

Public Attributes

int type
 

Detailed Description

Type access provider for token (enum) based symbols.

Member Function Documentation

◆ type_get()

int cfgyy::parser::by_type::type_get ( ) const
inline

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

Member Data Documentation

◆ type

int cfgyy::parser::by_type::type

The symbol type. empty_symbol when empty. An int, not token_number_type, to be able to store empty_symbol.


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