Public Member Functions | List of all members
lexyd::_term< Terminator, RecoveryLimit > Struct Template Reference

#include <terminator.hpp>

Public Member Functions

template<typename... Literals>
constexpr auto limit (Literals... literals) const
 Adds the literal tokens to the recovery limit. More...
 
template<typename Rule >
constexpr auto list (Rule) const
 
template<typename Rule , typename Sep >
constexpr auto list (Rule, Sep) const
 
template<typename Rule >
constexpr auto operator() (Rule rule) const
 Matches rule followed by the terminator. More...
 
template<typename Rule >
constexpr auto opt (Rule) const
 
template<typename Rule >
constexpr auto opt_list (Rule) const
 
template<typename Rule , typename Sep >
constexpr auto opt_list (Rule, Sep) const
 
constexpr auto recovery_rule () const
 Matches the recovery rule alone. More...
 
constexpr auto terminator () const
 Matches the terminator alone. More...
 
template<typename Rule >
constexpr auto try_ (Rule) const
 Matches rule followed by the terminator, recovering on error. More...
 

Detailed Description

template<typename Terminator, typename RecoveryLimit = void>
struct lexyd::_term< Terminator, RecoveryLimit >

Definition at line 24 of file terminator.hpp.

Member Function Documentation

◆ limit()

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

Adds the literal tokens to the recovery limit.

Definition at line 28 of file terminator.hpp.

◆ list() [1/2]

template<typename Terminator , typename RecoveryLimit = void>
template<typename Rule >
constexpr auto lexyd::_term< Terminator, RecoveryLimit >::list ( Rule  ) const
inlineconstexpr

Matches list(rule, sep) followed by terminator. The rule does not require a condition.

Definition at line 62 of file terminator.hpp.

◆ list() [2/2]

template<typename Terminator , typename RecoveryLimit = void>
template<typename Rule , typename Sep >
constexpr auto lexyd::_term< Terminator, RecoveryLimit >::list ( Rule  ,
Sep   
) const
inlineconstexpr

Definition at line 67 of file terminator.hpp.

◆ operator()()

template<typename Terminator , typename RecoveryLimit = void>
template<typename Rule >
constexpr auto lexyd::_term< Terminator, RecoveryLimit >::operator() ( Rule  rule) const
inlineconstexpr

Matches rule followed by the terminator.

Definition at line 39 of file terminator.hpp.

◆ opt()

template<typename Terminator , typename RecoveryLimit = void>
template<typename Rule >
constexpr auto lexyd::_term< Terminator, RecoveryLimit >::opt ( Rule  ) const
inlineconstexpr

Matches opt(rule) followed by terminator. The rule does not require a condition.

Definition at line 54 of file terminator.hpp.

◆ opt_list() [1/2]

template<typename Terminator , typename RecoveryLimit = void>
template<typename Rule >
constexpr auto lexyd::_term< Terminator, RecoveryLimit >::opt_list ( Rule  ) const
inlineconstexpr

Matches opt_list(rule, sep) followed by terminator. The rule does not require a condition.

Definition at line 76 of file terminator.hpp.

◆ opt_list() [2/2]

template<typename Terminator , typename RecoveryLimit = void>
template<typename Rule , typename Sep >
constexpr auto lexyd::_term< Terminator, RecoveryLimit >::opt_list ( Rule  ,
Sep   
) const
inlineconstexpr

Definition at line 81 of file terminator.hpp.

◆ recovery_rule()

template<typename Terminator , typename RecoveryLimit = void>
constexpr auto lexyd::_term< Terminator, RecoveryLimit >::recovery_rule ( ) const
inlineconstexpr

Matches the recovery rule alone.

Definition at line 95 of file terminator.hpp.

◆ terminator()

template<typename Terminator , typename RecoveryLimit = void>
constexpr auto lexyd::_term< Terminator, RecoveryLimit >::terminator ( ) const
inlineconstexpr

Matches the terminator alone.

Definition at line 89 of file terminator.hpp.

◆ try_()

template<typename Terminator , typename RecoveryLimit = void>
template<typename Rule >
constexpr auto lexyd::_term< Terminator, RecoveryLimit >::try_ ( Rule  ) const
inlineconstexpr

Matches rule followed by the terminator, recovering on error.

Definition at line 46 of file terminator.hpp.


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


behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Wed Apr 16 2025 02:20:59