HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Data Structures | Public Member Functions | Static Public Member Functions | Static Public Attributes
hi::v1::detail::lexer< Config > Class Template Reference

Data Structures

class  token_type
 

Public Member Functions

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 Public Member Functions

static constexpr size_t make_index (state_type from, char c) noexcept
 

Static Public Attributes

static constexpr auto zero_starts_octal = Config.zero_starts_octal
 
static constexpr auto number_group_separator = Config.number_group_separator
 

Member Function Documentation

◆ add()

template<lexer_config Config>
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
fromThe current state.
cThe current character.
toThe next state.
firstThe first attribute-argument
argsThe rest of the attribute-arguments.

The documentation for this class was generated from the following file: