Match a non‐empty string of characters from a default‐constructible set
Synopsis
template<CharSet CharSet>
constexpr
/* implementation-defined */
token_rule() noexcept
requires std::is_default_constructible<CharSet>::value;
Description
This overload is only available when CharSet is default constructible.
If there is no more input, the error code error::need_more is returned.
Value Type
using value_type = core::string_view;
Example
Rules are used with the function parse.
system::result< core::string_view > rv = parse( "abcdef", token_rule<alpha_chars_t>() );
BNF
token = 1*( ch )
Return Value
The token rule
Template Parameters
| Name | Description |
|---|---|
CharSet |
The character set type to use |
See Also
alpha_chars, parse.
Created with MrDocs