#include <any_types.hpp>
|
static constexpr auto | rule |
|
static constexpr auto | value |
|
Definition at line 95 of file any_types.hpp.
◆ rule
constexpr auto BT::Grammar::Real::rule |
|
staticconstexpr |
Initial value:= [] {
auto integer_part =
dsl::sign + dsl::digits<>;
auto fraction = dsl::period >> dsl::digits<>;
auto exponent = (dsl::lit_c<'e'> / dsl::lit_c<'E'>) >> (
dsl::sign + dsl::digits<>);
auto suffix_error =
.error<invalid_suffix>;
auto real_part = (fraction >>
dsl::if_(exponent) | exponent) >> suffix_error;
auto real_number =
dsl::token(integer_part + real_part);
}()
Definition at line 102 of file any_types.hpp.
◆ value
constexpr auto BT::Grammar::Real::value |
|
staticconstexpr |
Initial value:=
lexy::as_string<std::string> |
lexy::callback<BT::Any>([](std::string&& str) {
return BT::Any(std::stod(str)); })
Definition at line 116 of file any_types.hpp.
The documentation for this struct was generated from the following file: