What sort of token it is. More...
#include <token.hpp>
Public Member Functions | |
| constexpr _underlying_type | get () const noexcept |
| constexpr bool | ignore_if_empty () const noexcept |
| constexpr bool | is_predefined () const noexcept |
| constexpr const char * | name () const noexcept |
| constexpr | operator bool () const noexcept |
| constexpr | token_kind () noexcept |
| Creates an unknown token kind. More... | |
| constexpr | token_kind (_underlying_type value) noexcept |
| Creates the token kind with the specified value. More... | |
| constexpr | token_kind (predefined_token_kind value) noexcept |
| Creates a predefined token kind. More... | |
| template<typename TokenRule , typename = std::enable_if_t<lexy::is_token_rule<TokenRule>>> | |
| constexpr | token_kind (TokenRule) noexcept |
| Creates the token kind of a token rule. More... | |
Static Public Member Functions | |
| static constexpr token_kind< TokenKind > | from_raw (std::uint_least16_t kind) noexcept |
| static constexpr std::uint_least16_t | to_raw (token_kind< TokenKind > kind) noexcept |
Private Types | |
| using | _underlying_type = lexy::_detail::type_or< TokenKind, int > |
Private Member Functions | |
| constexpr | token_kind (std::uint_least16_t kind) noexcept |
Static Private Member Functions | |
| template<typename T > | |
| static constexpr bool | _is_compatible_kind_type () |
Private Attributes | |
| std::uint_least16_t | _value |
Friends | |
| constexpr friend bool | operator!= (token_kind lhs, token_kind rhs) noexcept |
| constexpr friend bool | operator== (token_kind lhs, token_kind rhs) noexcept |
| constexpr const friend char * | token_kind_name (token_kind kind) noexcept |
What sort of token it is.
|
private |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineexplicitconstexprprivatenoexcept |
|
inlinestaticconstexprprivate |
|
inlinestaticconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineexplicitconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
|
friend |
|
friend |
|
friend |
|
private |