A parsed token, i.e. its kind and its lexeme. More...
#include <token.hpp>
Public Types | |
using | char_type = typename encoding::char_type |
using | encoding = typename Reader::encoding |
using | iterator = typename Reader::iterator |
Public Member Functions | |
constexpr token_kind< TokenKind > | kind () const noexcept |
constexpr auto | lexeme () const noexcept |
constexpr const char * | name () const noexcept |
constexpr iterator | position () const noexcept |
constexpr | token (token_kind< TokenKind > kind, iterator begin, iterator end) noexcept |
constexpr | token (token_kind< TokenKind > kind, lexy::lexeme< Reader > lex) noexcept |
Private Attributes | |
token_kind< TokenKind > | _kind |
lexy::lexeme< Reader > | _lexeme |
A parsed token, i.e. its kind and its lexeme.
using lexy::token< Reader, TokenKind >::char_type = typename encoding::char_type |
using lexy::token< Reader, TokenKind >::encoding = typename Reader::encoding |
using lexy::token< Reader, TokenKind >::iterator = typename Reader::iterator |
|
inlineexplicitconstexprnoexcept |
|
inlineexplicitconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
private |
|
private |