jaulib v1.3.0
Jau Support Library (C++, Java, ..)
|
Base Alphabet Specification providing the alphabet for token_fsm. More...
#include <token_fsm.hpp>
Public Types | |
typedef code_point_t(* | code_point_func) (const char c) noexcept |
typedef uint16_t | code_point_t |
Unsigned int symbol for alphabet code-point type. More... | |
Public Member Functions | |
alphabet (std::string _name, code_point_t _base, code_point_func _cpf) noexcept | |
constexpr code_point_t | base () const noexcept |
The fixed base used for this alphabet, i.e. More... | |
constexpr code_point_t | code_point (const char c) const noexcept |
Returns the token of the given character or code_error if not element of this alphabet. More... | |
constexpr const std::string & | name () const noexcept |
Human readable name for this alphabet instance. More... | |
std::string | to_string () const noexcept |
Static Public Attributes | |
static constexpr const code_point_t | code_error = std::numeric_limits<code_point_t>::max() |
token_error value, denoting an invalid alphabet code-point. More... | |
Base Alphabet Specification providing the alphabet for token_fsm.
Implementation delegates static code_point() function.
Definition at line 74 of file token_fsm.hpp.