#include <terminator.hpp>
|
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...
|
|
template<typename Terminator, typename RecoveryLimit = void>
struct lexyd::_term< Terminator, RecoveryLimit >
Definition at line 24 of file terminator.hpp.
◆ 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 |
◆ 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 |
◆ recovery_rule()
template<typename Terminator , typename RecoveryLimit = void>
constexpr auto lexyd::_term< Terminator, RecoveryLimit >::recovery_rule |
( |
| ) |
const |
|
inlineconstexpr |
◆ terminator()
template<typename Terminator , typename RecoveryLimit = void>
constexpr auto lexyd::_term< Terminator, RecoveryLimit >::terminator |
( |
| ) |
const |
|
inlineconstexpr |
◆ 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: