#include <climits>
#include <cstdint>
#include <lexy/_detail/assert.hpp>
#include <lexy/_detail/config.hpp>
#include <lexy/_detail/detect.hpp>
#include <lexy/_detail/integer_sequence.hpp>
#include <lexy/grammar.hpp>
#include <lexy/lexeme.hpp>
Go to the source code of this file.
Classes | |
struct | lexy::_tk_map< TokenKind, Tokens > |
struct | lexy::_tk_map_empty |
class | lexy::token< Reader, TokenKind > |
A parsed token, i.e. its kind and its lexeme. More... | |
class | lexy::token_kind< TokenKind > |
What sort of token it is. More... | |
Namespaces | |
lexy | |
Typedefs | |
template<typename Input , typename TokenKind = void> | |
using | lexy::token_for = token< lexy::input_reader< Input >, TokenKind > |
Functions | |
template<typename TokenKind , typename Reader > | |
lexy::token (token_kind< TokenKind >, lexy::lexeme< Reader >) -> token< Reader, TokenKind > | |
template<typename TokenKind , typename Reader , typename = std::enable_if_t<std::is_integral_v<TokenKind>>> | |
lexy::token (TokenKind, lexy::lexeme< Reader >) -> token< Reader, void > | |
template<typename TokenRule , typename Reader , typename = std::enable_if_t<_has_special_token_kind<TokenRule>>> | |
lexy::token (TokenRule, lexy::lexeme< Reader >) -> token< Reader, LEXY_DECAY_DECLTYPE(lexy::token_kind_of< TokenRule >)> | |
template<typename TokenKind , typename = std::enable_if_t<std::is_integral_v<TokenKind>>> | |
lexy::token_kind (TokenKind) -> token_kind< void > | |
template<typename TokenRule , typename = std::enable_if_t<_has_special_token_kind<TokenRule>>> | |
lexy::token_kind (TokenRule) -> token_kind< LEXY_DECAY_DECLTYPE(lexy::token_kind_of< TokenRule >)> | |
Variables | |
template<typename TokenRule > | |
constexpr auto | lexy::_has_special_token_kind |
constexpr auto | lexy::token_kind_map = _tk_map_empty{} |
template<typename TokenKind > | |
constexpr auto | lexy::token_kind_map_for = token_kind_map |
A mapping of token rule to token kind; specialize for your own kinds. More... | |
template<> | |
constexpr auto | lexy::token_kind_map_for< void > = token_kind_map |