|
|
constexpr void | add_literal_numbers () noexcept |
| |
|
constexpr void | add_literal_string (char c, token_type token, state_type literal, state_type literal_quote, state_type literal_escape, state_type literal_escape_finish) noexcept |
| |
|
constexpr void | add_comment () noexcept |
| |
|
constexpr void | add_identifier () noexcept |
| |
|
constexpr command_type & | add (state_type from, char c, state_type to) noexcept |
| |
| template<typename First , typename... Args> |
| constexpr command_type & | add (state_type from, char c, state_type to, First first, Args const &...args) noexcept |
| | Add a state change.
|
| |
|
template<size_t N, typename... Args> |
| constexpr void | add (state_type from, char(&str)[N], state_type to, Args const &...args) noexcept |
| |
|
template<typename... Args> |
| constexpr void | add (state_type from, state_type to, Args const &...args) noexcept |
| |
|
|
static constexpr size_t | make_index (state_type from, char c) noexcept |
| |
|
|
static constexpr auto | zero_starts_octal = Config.zero_starts_octal |
| |
|
static constexpr auto | number_group_separator = Config.number_group_separator |
| |
◆ add()
template<typename First , typename... Args>
| constexpr command_type & hi::v1::detail::lexer< Config >::add |
( |
state_type | from, |
|
|
char | c, |
|
|
state_type | to, |
|
|
First | first, |
|
|
Args const &... | args ) |
|
inlineconstexprnoexcept |
Add a state change.
The attribute-arguments may be:
- token: The token will be emited and the capture-buffer is reset.
- no_read_tag: The current character will not advance.
- reset_tag: Reset the capture-buffer explicitely.
- char: The character to capture, the default is c, if no_capture no character is captured.
- Parameters
-
| from | The current state. |
| c | The current character. |
| to | The next state. |
| first | The first attribute-argument |
| args | The rest of the attribute-arguments. |
The documentation for this class was generated from the following file: