#include <brackets.hpp>
|
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...
|
|
template<typename Open, typename Close, typename RecoveryLimit = void>
struct lexyd::_brackets< Open, Close, RecoveryLimit >
Definition at line 14 of file brackets.hpp.
◆ 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>
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 |
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 |
r, |
|
|
S |
sep |
|
) |
| const |
|
inlineconstexpr |
◆ open()
template<typename Open , typename Close , typename RecoveryLimit = void>
◆ operator()()
template<typename Open , typename Close , typename RecoveryLimit = void>
template<typename R >
constexpr auto lexyd::_brackets< Open, Close, RecoveryLimit >::operator() |
( |
R |
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 >
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 |
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 |
r, |
|
|
S |
sep |
|
) |
| const |
|
inlineconstexpr |
◆ recovery_rule()
template<typename Open , typename Close , typename RecoveryLimit = void>
constexpr auto lexyd::_brackets< Open, Close, RecoveryLimit >::recovery_rule |
( |
| ) |
const |
|
inlineconstexpr |
◆ try_()
template<typename Open , typename Close , typename RecoveryLimit = void>
template<typename R >
constexpr auto lexyd::_brackets< Open, Close, RecoveryLimit >::try_ |
( |
R |
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: