Public Member Functions | List of all members
lexyd::_brackets< Open, Close, RecoveryLimit > Struct Template Reference

#include <brackets.hpp>

Public Member Functions

constexpr auto as_terminator () const
 Returns an equivalent terminator. More...
 
constexpr auto close () const
 Matches the closing bracket. More...
 
template<typename... Literals>
constexpr auto limit (Literals... literals) const
 Adds the literal tokens to the recovery limit. More...
 
template<typename R >
constexpr auto list (R r) const
 
template<typename R , typename S >
constexpr auto list (R r, S sep) const
 
constexpr auto open () const
 Matches the open bracket. More...
 
template<typename R >
constexpr auto operator() (R r) const
 Matches the rule surrounded by brackets. More...
 
template<typename R >
constexpr auto opt (R r) const
 
template<typename R >
constexpr auto opt_list (R r) const
 
template<typename R , typename S >
constexpr auto opt_list (R r, S sep) const
 
constexpr auto recovery_rule () const
 
template<typename R >
constexpr auto try_ (R r) const
 Matches the rule surrounded by brackets, recovering on error. More...
 

Detailed Description

template<typename Open, typename Close, typename RecoveryLimit = void>
struct lexyd::_brackets< Open, Close, RecoveryLimit >

Definition at line 14 of file brackets.hpp.

Member Function Documentation

◆ as_terminator()

template<typename Open , typename Close , typename RecoveryLimit = void>
constexpr auto lexyd::_brackets< Open, Close, RecoveryLimit >::as_terminator ( ) const
inlineconstexpr

Returns an equivalent terminator.

Definition at line 88 of file brackets.hpp.

◆ close()

template<typename Open , typename Close , typename RecoveryLimit = void>
constexpr auto lexyd::_brackets< Open, Close, RecoveryLimit >::close ( ) const
inlineconstexpr

Matches the closing bracket.

Definition at line 82 of file brackets.hpp.

◆ limit()

template<typename Open , typename Close , typename RecoveryLimit = void>
template<typename... Literals>
constexpr auto lexyd::_brackets< Open, Close, RecoveryLimit >::limit ( Literals...  literals) const
inlineconstexpr

Adds the literal tokens to the recovery limit.

Definition at line 18 of file brackets.hpp.

◆ list() [1/2]

template<typename Open , typename Close , typename RecoveryLimit = void>
template<typename R >
constexpr auto lexyd::_brackets< Open, Close, RecoveryLimit >::list ( r) const
inlineconstexpr

Matches list(r, sep) surrounded by brackets. The rule does not require a condition.

Definition at line 52 of file brackets.hpp.

◆ list() [2/2]

template<typename Open , typename Close , typename RecoveryLimit = void>
template<typename R , typename S >
constexpr auto lexyd::_brackets< Open, Close, RecoveryLimit >::list ( r,
sep 
) const
inlineconstexpr

Definition at line 57 of file brackets.hpp.

◆ open()

template<typename Open , typename Close , typename RecoveryLimit = void>
constexpr auto lexyd::_brackets< Open, Close, RecoveryLimit >::open ( ) const
inlineconstexpr

Matches the open bracket.

Definition at line 77 of file brackets.hpp.

◆ operator()()

template<typename Open , typename Close , typename RecoveryLimit = void>
template<typename R >
constexpr auto lexyd::_brackets< Open, Close, RecoveryLimit >::operator() ( r) const
inlineconstexpr

Matches the rule surrounded by brackets.

Definition at line 29 of file brackets.hpp.

◆ opt()

template<typename Open , typename Close , typename RecoveryLimit = void>
template<typename R >
constexpr auto lexyd::_brackets< Open, Close, RecoveryLimit >::opt ( r) const
inlineconstexpr

Matches opt(r) surrounded by brackets. The rule does not require a condition.

Definition at line 44 of file brackets.hpp.

◆ opt_list() [1/2]

template<typename Open , typename Close , typename RecoveryLimit = void>
template<typename R >
constexpr auto lexyd::_brackets< Open, Close, RecoveryLimit >::opt_list ( r) const
inlineconstexpr

Matches opt_list(r, sep) surrounded by brackets. The rule does not require a condition.

Definition at line 65 of file brackets.hpp.

◆ opt_list() [2/2]

template<typename Open , typename Close , typename RecoveryLimit = void>
template<typename R , typename S >
constexpr auto lexyd::_brackets< Open, Close, RecoveryLimit >::opt_list ( r,
sep 
) const
inlineconstexpr

Definition at line 70 of file brackets.hpp.

◆ recovery_rule()

template<typename Open , typename Close , typename RecoveryLimit = void>
constexpr auto lexyd::_brackets< Open, Close, RecoveryLimit >::recovery_rule ( ) const
inlineconstexpr

Definition at line 93 of file brackets.hpp.

◆ try_()

template<typename Open , typename Close , typename RecoveryLimit = void>
template<typename R >
constexpr auto lexyd::_brackets< Open, Close, RecoveryLimit >::try_ ( r) const
inlineconstexpr

Matches the rule surrounded by brackets, recovering on error.

Definition at line 36 of file brackets.hpp.


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


behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Dec 13 2024 03:19:19