Classes | Static Public Attributes | List of all members
BT::Grammar::Integer Struct Reference

#include <any_types.hpp>

Inheritance diagram for BT::Grammar::Integer:
Inheritance graph
[legend]

Classes

struct  integer
 
struct  invalid_suffix
 

Static Public Attributes

static constexpr auto rule
 
static constexpr auto value = lexy::construct<int64_t>
 

Detailed Description

Definition at line 67 of file any_types.hpp.

Member Data Documentation

◆ rule

constexpr auto BT::Grammar::Integer::rule
staticconstexpr
Initial value:
= [] {
auto hex_integer =
(LEXY_LIT("0x") | LEXY_LIT("0X")) >> dsl::integer<int64_t, dsl::hex>;
auto regular_integer =
dsl::peek(dsl::lit_c<'-'> / dsl::lit_c<'+'> / dsl::digit<>) >> dsl::p<integer>;
auto suffix_error =
.error<invalid_suffix>;
return (hex_integer | regular_integer) >> suffix_error;
}()

Definition at line 80 of file any_types.hpp.

◆ value

constexpr auto BT::Grammar::Integer::value = lexy::construct<int64_t>
staticconstexpr

Definition at line 91 of file any_types.hpp.


The documentation for this struct was generated from the following file:
lexyd::peek_not
constexpr auto peek_not(Rule)
Checks if at this reader position, the rule would not match.
Definition: peek.hpp:173
lexyd::peek
constexpr auto peek(Rule)
Definition: peek.hpp:166
LEXY_LIT
#define LEXY_LIT(Str)
Definition: literal.hpp:390
lexyd::ascii::alpha_underscore
constexpr auto alpha_underscore
Definition: ascii.hpp:226
lexyd::ascii::alpha
constexpr auto alpha
Definition: ascii.hpp:201


behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Jun 28 2024 02:20:09